build-style/perl-module.sh: use target Config*pm files
These contain the proper CFLAGS.
This commit is contained in:
parent
3e6205a06c
commit
5b37844952
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue