build-style/perl-module.sh: use target Config*pm files

These contain the proper CFLAGS.
This commit is contained in:
Christian Neukirchen 2016-08-14 21:19:00 +02:00
parent 3e6205a06c
commit 5b37844952

View file

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