From: Michael Tremer Date: Tue, 7 May 2019 20:19:53 +0000 (+0100) Subject: xfsprogs: Disable LTO on armv5tel X-Git-Tag: v2.23-core133~156 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=e9dd6da5527766be474dfc057677acab7f756ed4 xfsprogs: Disable LTO on armv5tel LTO fails on ARM, but since we do not require it, we can disable it here. Signed-off-by: Michael Tremer --- diff --git a/lfs/xfsprogs b/lfs/xfsprogs index af6ccce37c..07410f7207 100644 --- a/lfs/xfsprogs +++ b/lfs/xfsprogs @@ -32,6 +32,14 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) +CONFIGURE_OPTIONS = \ + --enable-readline=yes + +ifeq "$(BUILD_ARCH)" "armv5tel" + CONFIGURE_OPTIONS += \ + --enable-lto=no +endif + ############################################################################### # Top-level Rules ############################################################################### @@ -74,7 +82,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && make $(MAKETUNING) DEBUG=-DNDEBUG INSTALL_USER=root INSTALL_GROUP=root \ - LOCAL_CONFIGURE_OPTIONS="--enable-readline=yes" + LOCAL_CONFIGURE_OPTIONS="$(CONFIGURE_OPTIONS)" cd $(DIR_APP) && make install install-dev cd $(DIR_APP) && install -v -m755 -D libhandle/libhandle.la /usr/lib/libhandle.la chmod -v 755 /lib/libhandle.so*