1 --- perl-5.10.1/Makefile.SH.orig 2009-08-03 22:43:30.000000000 +0200
2 +++ perl-5.10.1/Makefile.SH 2009-09-12 10:03:20.451763024 +0200
4 # INSTALL file, under "Building a shared perl library".
5 # If there is no pre-existing $libperl, we don't need
6 # to do anything further.
7 - if test -f $archlib/CORE/$libperl; then
8 +# if test -f $archlib/CORE/$libperl; then
15 ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
19 os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
25 - $spitshell >>$Makefile <<'!NO!SUBS!'
26 -$(LIBPERL): $& $(perllib_dep) $(DYNALOADER) $(LIBPERLEXPORT)
27 + $spitshell >>Makefile <<!NO!SUBS!
28 +LIBPERL_SONAME=\$(LIBPERL).$version
29 +\$(LIBPERL): \$& \$(perllib_dep) \$(DYNALOADER) \$(LIBPERLEXPORT)
33 $spitshell >>$Makefile <<'!NO!SUBS!'
35 - $(LD) -o $@ $(SHRPLDFLAGS) $(perllib_objs) $(DYNALOADER) $(libs)
36 + rm -f $@ $(LIBPERL_SONAME)
37 + $(LD) -o $(LIBPERL_SONAME) $(SHRPLDFLAGS) -Wl,-soname,$(LIBPERL_SONAME) $(SHRPLDFLAGS) $(perllib_objs) $(DYNALOADER) $(libs)
38 + ln -s $(LIBPERL_SONAME) $@