nasm: disable LTO, remove host specific workarounds
The recent build failures on various platforms were apparently caused by the fact that LTO build support in the configure script does not check if it has a suitable version of gcc and simply assumes that gcc-ar is available and can be used for intermediate files. Since we really don't need to build nasm with LTO, simply disable it and keep the whole build more portable Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
98a6bee09a
commit
a5188eb258
1 changed files with 1 additions and 7 deletions
|
@ -19,17 +19,11 @@ include $(INCLUDE_DIR)/toolchain-build.mk
|
||||||
HOST_CONFIGURE_ARGS+= \
|
HOST_CONFIGURE_ARGS+= \
|
||||||
--target=$(REAL_GNU_TARGET_NAME) \
|
--target=$(REAL_GNU_TARGET_NAME) \
|
||||||
--with-sysroot=$(TOOLCHAIN_DIR) \
|
--with-sysroot=$(TOOLCHAIN_DIR) \
|
||||||
--enable-lto \
|
--disable-lto \
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
--disable-gdb \
|
--disable-gdb \
|
||||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||||
|
|
||||||
ifeq ($(HOST_OS),Darwin)
|
|
||||||
HOST_MAKE_FLAGS = \
|
|
||||||
AR=ar \
|
|
||||||
RANLIB=ranlib
|
|
||||||
endif
|
|
||||||
|
|
||||||
define Host/Prepare
|
define Host/Prepare
|
||||||
$(call Host/Prepare/Default)
|
$(call Host/Prepare/Default)
|
||||||
ln -snf $(notdir $(HOST_BUILD_DIR)) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
|
ln -snf $(notdir $(HOST_BUILD_DIR)) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
|
||||||
|
|
Loading…
Reference in a new issue