perl-module: fall back to use host files
If perl is not installed for the target when cross building a module, fall back to use the host Config*.p? and Errno.pm files.
This commit is contained in:
parent
25cb60c239
commit
c43b120be0
1 changed files with 7 additions and 2 deletions
|
@ -16,8 +16,13 @@ do_configure() {
|
||||||
|
|
||||||
local perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
|
local perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
|
||||||
mkdir -p $perlprefix
|
mkdir -p $perlprefix
|
||||||
|
if [ -d "XBPS_CROSS_BASE/usr/lib/perl5/core_perl" ]; then
|
||||||
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Config"*.p? $perlprefix
|
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Config"*.p? $perlprefix
|
||||||
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Errno.pm" $perlprefix
|
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Errno.pm" $perlprefix
|
||||||
|
else
|
||||||
|
cp "/usr/lib/perl5/core_perl/Config"*.p? $perlprefix
|
||||||
|
cp "/usr/lib/perl5/core_perl/Errno.pm" $perlprefix
|
||||||
|
fi
|
||||||
export PERL5LIB=$perlprefix
|
export PERL5LIB=$perlprefix
|
||||||
|
|
||||||
if [ -f ${wrksrc}/Makefile.PL ]; then
|
if [ -f ${wrksrc}/Makefile.PL ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue