From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] libloc: Apply patch to compile the perl module without stack protector. Date: Sun, 19 Jul 2020 11:22:52 +0200 Message-ID: <20200719092252.4315-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6589934221672787495==" List-Id: --===============6589934221672787495== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Stefan Schantl --- lfs/libloc | 3 +++ .../libloc-0.9.3-perl-no-stack-protector.patch | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/patches/libloc-0.9.3-perl-no-stack-protector.patch diff --git a/lfs/libloc b/lfs/libloc index 43af26b45..5cf3e0819 100644 --- a/lfs/libloc +++ b/lfs/libloc @@ -78,6 +78,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xvf $(DIR_DL)/$(DL_FILE) =20 + # 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=3D/usr \ diff --git a/src/patches/libloc-0.9.3-perl-no-stack-protector.patch b/src/pat= ches/libloc-0.9.3-perl-no-stack-protector.patch new file mode 100644 index 000000000..b615ed902 --- /dev/null +++ b/src/patches/libloc-0.9.3-perl-no-stack-protector.patch @@ -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 =3D> ['-lloc'], + DEFINE =3D> '', # e.g., '-DHAVE_SOMETHING' + INC =3D> '-I. -I../../', ++ CCFLAGS =3D> '-fno-stack-protector', + # Un-comment this if you add C files to link with later: + # OBJECT =3D> '$(O_FILES)', # link all the C files too + ); --=20 2.20.1 --===============6589934221672787495==--