common/build-style/perl-ModuleBuild.sh: use target perl includes

This commit is contained in:
newbluemoon 2018-09-04 06:43:14 +02:00 committed by maxice8
parent 4528a706ff
commit 435f99d4a7
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
1 changed files with 2 additions and 0 deletions

View File

@ -16,12 +16,14 @@ do_configure() {
_ccflags=$(sed -n "s;^ccflags='\(.*\)';\1;p" $_conf)
_lddlflags=$(sed -n "s;^lddlflags='\(.*\)';\1;p" $_conf)
_ldflags=$(sed -n "s;^ldflags='\(.*\)';\1;p" $_conf)
_archlibexp=$(sed -n "s;^archlibexp='\(.*\)';\1;p" $_conf)
PERL_MM_USE_DEFAULT=1 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$DESTDIR'" \
PERL_MB_OPT="--installdirs vendor --destdir '$DESTDIR'" \
LD="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
perl Build.PL --config optimize="$_optimize" --config ccflags="$_ccflags" \
--config lddlflags="$_lddlflags" --config ldflags="$_ldflags" \
--config archlibexp="${XBPS_CROSS_BASE}${_archlibexp}" \
${configure_args} INSTALLDIRS=vendor
else
msg_error "$pkgver: cannot find Build.PL for perl module!\n"