diff --git a/common/build-style/perl-module.sh b/common/build-style/perl-module.sh index 3efeeaa38ec..5433d05bd96 100644 --- a/common/build-style/perl-module.sh +++ b/common/build-style/perl-module.sh @@ -16,7 +16,7 @@ do_configure() { local perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE} mkdir -p $perlprefix - if [ -d "XBPS_CROSS_BASE/usr/lib/perl5/core_perl" ]; then + 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/Errno.pm" $perlprefix else @@ -25,8 +25,6 @@ do_configure() { fi export PERL5LIB=$perlprefix - sed -i "s#^ccflags=.*#ccflags='$CFLAGS'#" "$perlprefix/Config"*.p? - if [ -f ${wrksrc}/Makefile.PL ]; then sed -i "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" ${wrksrc}/Makefile.PL fi