mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
libloc: Apply patch to compile the perl module without stack protector.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
bbaf9bdf21
commit
cb4860794b
@@ -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 \
|
||||
|
||||
12
src/patches/libloc-0.9.3-perl-no-stack-protector.patch
Normal file
12
src/patches/libloc-0.9.3-perl-no-stack-protector.patch
Normal file
@@ -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
|
||||
);
|
||||
Reference in New Issue
Block a user