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 <stefan.schantl@ipfire.org>
version = %{ver_major}.%{ver_minor}.%{ver_plevel}
# Never reset release in this package, just increase.
-release = 2.2
+release = 3
thisver = %{version}-%{_release}
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}