perl: remove references to -specs.

Close #4160.
This commit is contained in:
Alessio Sergi 2016-05-09 00:19:19 +02:00
parent 51f45d0dcf
commit 5960929a42

View file

@ -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
}