]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
libloc: Apply -fstack-protector only on i586
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Jul 2020 12:48:55 +0000 (12:48 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 28 Jul 2020 18:29:37 +0000 (18:29 +0000)
All other architectures build fine and we do not need to
weaken the Perl module unnecessarily.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/libloc

index df86ff19d08c5327532c0d1bcbd9fa2cf077864c..a71a9ac5b03c05efbbec30bfcb9acf9454cd1890 100644 (file)
@@ -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 \