diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template index 78640328be1..4e847741ef3 100644 --- a/srcpkgs/perl/template +++ b/srcpkgs/perl/template @@ -1,7 +1,7 @@ # Template build file for 'perl'. pkgname=perl version=5.22.2 -revision=1 +revision=2 hostmakedepends="less" makedepends="zlib-devel bzip2-devel gdbm-devel db-devel" depends="less" @@ -266,6 +266,7 @@ do_install() { } post_install() { - # remove -specs hardened-cc1 - sed -i 's/-specs=.*hardened-cc1//g' ${DESTDIR}/usr/lib/perl5/core_perl/Config_heavy.pl + # Remove references to hardening -specs. + sed -e "s|\(-specs=.*hardened-ld\)||g" -e "s|\(-specs=.*hardened-cc1\)||g" \ + -i ${DESTDIR}/usr/lib/perl5/core_perl/Config_heavy.pl }