From 2f792446a5826c6eb6a51130c2c39eb204c5e5a0 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 26 Feb 2018 19:19:12 +0100 Subject: [PATCH] common/build-style: do not leak host CFLAGS --- common/build-style/perl-module.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/build-style/perl-module.sh b/common/build-style/perl-module.sh index 40816588970..3efeeaa38ec 100644 --- a/common/build-style/perl-module.sh +++ b/common/build-style/perl-module.sh @@ -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