---- perl-5.10.0/Makefile.SH.orig 2008-01-09 21:37:11.870736307 +0000
-+++ perl-5.10.0/Makefile.SH 2008-01-09 22:47:51.579350787 +0000
-@@ -124,7 +124,7 @@
+--- perl-5.10.1/Makefile.SH.orig 2009-08-03 22:43:30.000000000 +0200
++++ perl-5.10.1/Makefile.SH 2009-09-12 10:03:20.451763024 +0200
+@@ -160,7 +160,7 @@
# INSTALL file, under "Building a shared perl library".
# If there is no pre-existing $libperl, we don't need
# to do anything further.
rm -f preload
cat <<'EOT' > preload
#! /bin/sh
-@@ -135,7 +135,7 @@
+@@ -171,7 +171,7 @@
EOT
chmod 755 preload
ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
;;
os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
;;
-@@ -581,14 +581,16 @@
- Makefile: $Makefile_s
- !GROK!THIS!
- else
-- $spitshell >>Makefile <<'!NO!SUBS!'
--$(LIBPERL): $& $(obj) $(DYNALOADER) $(LIBPERLEXPORT)
+@@ -728,14 +728,16 @@
+ !NO!SUBS!
+ ;;
+ esac
+- $spitshell >>$Makefile <<'!NO!SUBS!'
+-$(LIBPERL): $& $(perllib_dep) $(DYNALOADER) $(LIBPERLEXPORT)
+ $spitshell >>Makefile <<!NO!SUBS!
+LIBPERL_SONAME=\$(LIBPERL).$version
-+\$(LIBPERL): \$& \$(obj) \$(DYNALOADER) \$(LIBPERLEXPORT)
++\$(LIBPERL): \$& \$(perllib_dep) \$(DYNALOADER) \$(LIBPERLEXPORT)
!NO!SUBS!
case "$useshrplib" in
true)
- $spitshell >>Makefile <<'!NO!SUBS!'
+ $spitshell >>$Makefile <<'!NO!SUBS!'
- rm -f $@
-- $(LD) -o $@ $(SHRPLDFLAGS) $(obj) $(DYNALOADER) $(libs)
+- $(LD) -o $@ $(SHRPLDFLAGS) $(perllib_objs) $(DYNALOADER) $(libs)
+ rm -f $@ $(LIBPERL_SONAME)
-+ $(LD) -o $(LIBPERL_SONAME) $(SHRPLDFLAGS) -Wl,-soname,$(LIBPERL_SONAME) $(SHRPLDFLAGS) $(obj) $(DYNALOADER) $(libs)
++ $(LD) -o $(LIBPERL_SONAME) $(SHRPLDFLAGS) -Wl,-soname,$(LIBPERL_SONAME) $(SHRPLDFLAGS) $(perllib_objs) $(DYNALOADER) $(libs)
+ ln -s $(LIBPERL_SONAME) $@
!NO!SUBS!
case "$osname" in