--- App-Staticperl/staticperl.sh 2010/12/08 22:27:35 1.11 +++ App-Staticperl/staticperl.sh 2010/12/10 10:44:20 1.13 @@ -61,6 +61,9 @@ ############################################################################# # support +unset PERL5OPT PERL5LIB PERLLIB PERL_UNICODE PERLIO_DEBUG +export LC_ALL=C # just to be on the safe side + # set version in a way that Makefile.PL can extract VERSION=VERSION; eval \ $VERSION=0.9 @@ -149,7 +152,7 @@ EOF mkdir -p unpack - $BZIP2 -d "$MKBUNDLE~" || fatal "$MKBUNDLE~: cannot create" chmod 755 "$MKBUNDLE~" && mv "$MKBUNDLE~" "$MKBUNDLE" - "$PERL_PREFIX/bin/perl" -- "$MKBUNDLE" "$@" + CACHE="$STATICPERL/cache" + mkdir -p "$CACHE" + "$PERL_PREFIX/bin/perl" -- "$MKBUNDLE" --cache "$CACHE" "$@" } if [ $# -gt 0 ]; then