From 5b378449522aa3be4a9d421e0abdd189638035b8 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sun, 14 Aug 2016 21:19:00 +0200 Subject: [PATCH] build-style/perl-module.sh: use target Config*pm files These contain the proper CFLAGS. --- common/build-style/perl-module.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/build-style/perl-module.sh b/common/build-style/perl-module.sh index 28eb0d9a315..0201376bd14 100644 --- a/common/build-style/perl-module.sh +++ b/common/build-style/perl-module.sh @@ -14,6 +14,11 @@ do_configure() { local perlmkf + local perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE} + mkdir -p $perlprefix + cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Config"* $perlprefix + export PERL5LIB=$perlprefix + if [ -f ${wrksrc}/Makefile.PL ]; then sed -i "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" ${wrksrc}/Makefile.PL fi