From: Michael Tremer Date: Tue, 21 Jul 2020 12:48:55 +0000 (+0000) Subject: libloc: Apply -fstack-protector only on i586 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f5b5954b241c8f78f1b81d1313f09b97988190a;p=people%2Fms%2Fipfire-2.x.git libloc: Apply -fstack-protector only on i586 All other architectures build fine and we do not need to weaken the Perl module unnecessarily. Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/lfs/libloc b/lfs/libloc index df86ff19d0..a71a9ac5b0 100644 --- a/lfs/libloc +++ b/lfs/libloc @@ -82,7 +82,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libloc-0.9.3-country-terminate-buffer-when-reading-from-database.patch # Add patch for i586 to disable strong stack protector. +ifeq "$(BUILD_ARCH)" "i586" cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libloc-0.9.3-perl-regular-stack-protector.patch +endif cd $(DIR_APP) && ./autogen.sh cd $(DIR_APP) && ./configure \