common/build-style: do not leak host CFLAGS

This commit is contained in:
Enno Boland 2018-02-26 19:19:12 +01:00
parent ef77fbf29f
commit 2f792446a5
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ do_configure() {
fi
export PERL5LIB=$perlprefix
sed -i "s#^ccflags=.*#ccflags='$CFLAGS'#" "$perlprefix/Config"*.p?
if [ -f ${wrksrc}/Makefile.PL ]; then
sed -i "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" ${wrksrc}/Makefile.PL
fi