ldlibpth=`echo $ldlibpth | sed 's/:*$//'`
;;
esac
- case "$osname" in
+
+ case "$ldlibpth" in
+ # Protect any spaces
+ *" "*) ldlibpth=`echo $ldlibpth|sed 's/ /\\\\ /g'` ;;
+ esac
+
+ case "$osname" in
linux)
- ldlibpth="LD_PRELOAD=\"\$\$LD_PRELOAD `pwd`/$libperl\" $ldlibpth"
- ;;
+ rm -f preload
+ cat <<-'EOT' > preload
+ #! /bin/sh
+ lib=$1
+ shift
+ test -r $lib && export LD_PRELOAD="$lib $LD_PRELOAD"
+ exec "$@"
+ EOT
+ chmod 755 preload
+ ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
+ ;;
+ os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
+ ;;
esac
+
;;
+
*) pldlflags=''
static_target='static'
;;
esac
-case "$ldlibpth" in
-# Protect any spaces
-*" "*) ldlibpth=`echo $ldlibpth|sed 's/ /\\\\ /g'` ;;
-esac
-
-case "$osname" in
-os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
- ;;
-esac
-
: Prepare dependency lists for Makefile.
dynamic_list=' '
for f in $dynamic_ext; do
esac
$spitshell >>Makefile <<'!NO!SUBS!'
perl.exp: $(MINIPERLEXP) makedef.pl config.sh $(SYM) $(SYMH)
- ./$(MINIPERLEXP) makedef.pl PLATFORM=aix | sort -u | sort -f > perl.exp.tmp
+ ./$(MINIPERLEXP) makedef.pl PLATFORM=aix CC_FLAGS="$(OPTIMIZE)" | sort -u | sort -f > perl.exp.tmp
sh mv-if-diff perl.exp.tmp perl.exp
!NO!SUBS!
MINIPERLEXP = miniperl
perl5.def: $(MINIPERLEXP) makedef.pl config.sh $(SYM) $(SYMH) miniperl.map
- ./$(MINIPERLEXP) makedef.pl PLATFORM=os2 -DPERL_DLL=$(PERL_DLL) > perl.exp.tmp
+ ./$(MINIPERLEXP) makedef.pl PLATFORM=os2 -DPERL_DLL=$(PERL_DLL) CC_FLAGS="$(OPTIMIZE)" > perl.exp.tmp
sh mv-if-diff perl.exp.tmp perl5.def
!NO!SUBS!
rm -f lib/.exists lib/*/.exists lib/*/*/.exists
rm -f h2ph.man pstruct
rm -rf .config
+ rm -f preload
rm -f testcompile compilelog
-rmdir lib/B lib/Data lib/Digest
rm -rf lib/Encode
test_tty test-tty _test_tty test_notty test-notty _test_notty \
utest ucheck test.utf8 check.utf8 test.torture torturetest \
test.third check.third utest.third ucheck.third test_notty.third \
- test.deparse test_notty.deparse \
+ test.deparse test_notty.deparse test_harness \
minitest coretest
# Cannot delegate rebuilding of t/perl to make