]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
libloc: Apply patch to compile the perl module without stack protector.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Jul 2020 09:22:52 +0000 (11:22 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 21 Jul 2020 11:09:51 +0000 (11:09 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/libloc
src/patches/libloc-0.9.3-perl-no-stack-protector.patch [new file with mode: 0644]

index 43af26b459a2e696b1121b7f753acc205e2768d2..5cf3e0819c770304f5eeddd6a2442ed9ff5d88f9 100644 (file)
@@ -78,6 +78,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xvf $(DIR_DL)/$(DL_FILE)
 
+       # Add patch for i585 to disable the stack protector.
+       cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libloc-0.9.3-perl-no-stack-protector.patch
+
        cd $(DIR_APP) && ./autogen.sh
        cd $(DIR_APP) && ./configure \
                --prefix=/usr \
diff --git a/src/patches/libloc-0.9.3-perl-no-stack-protector.patch b/src/patches/libloc-0.9.3-perl-no-stack-protector.patch
new file mode 100644 (file)
index 0000000..b615ed9
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/src/perl/Makefile.PL b/src/perl/Makefile.PL
+index 38d5390..62016ca 100644
+--- a/src/perl/Makefile.PL
++++ b/src/perl/Makefile.PL
+@@ -11,6 +11,7 @@ WriteMakefile(
+     LIBS              => ['-lloc'],
+     DEFINE            => '', # e.g., '-DHAVE_SOMETHING'
+     INC               => '-I. -I../../',
++    CCFLAGS           => '-fno-stack-protector',
+       # Un-comment this if you add C files to link with later:
+     # OBJECT            => '$(O_FILES)', # link all the C files too
+ );