From: Stefan Schantl Date: Thu, 9 Mar 2023 12:45:32 +0000 (+0000) Subject: perl: Force perl to build with -fstack-protector-all X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37aea47acd4c8e879c9740e694f5e034f43fb647;p=ipfire-3.x.git perl: Force perl to build with -fstack-protector-all Forcing perl to build with -fstack-protector-all and not with -fstack-protector-strong. More details could be found here: https://git.ipfire.org/?p=pakfire.git;a=commit;h=f1153a857affb461de71d0c7e62cbf39de0c802b Signed-off-by: Stefan Schantl --- diff --git a/perl/perl.nm b/perl/perl.nm index ab4d12ef5..3a7bad525 100644 --- a/perl/perl.nm +++ b/perl/perl.nm @@ -10,7 +10,7 @@ ver_plevel = 0 version = %{ver_major}.%{ver_minor}.%{ver_plevel} # Never reset release in this package, just increase. -release = 2.2 +release = 3 thisver = %{version}-%{_release} @@ -126,6 +126,10 @@ build rm -rf cpan/Compress-Raw-Bzip2/bzip2-src sed -i '/\(bzip2\|zlib\)-src/d' MANIFEST + # Force the configure script to check if -fstack-protector-all is supported + # and set this afterwards. (Otherwise -fstack-protector-strong would be used) + sed -i "s/stack-protector-strong/stack-protector-all/g" Configure + sh ./Configure %{configure_options} make %{PARALLELISMFLAGS}