1 --- perl-5.10.0/Makefile.SH.orig 2008-01-09 21:37:11.870736307 +0000
2 +++ perl-5.10.0/Makefile.SH 2008-01-09 22:47:51.579350787 +0000
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): $& $(obj) $(DYNALOADER) $(LIBPERLEXPORT)
27 + $spitshell >>Makefile <<!NO!SUBS!
28 +LIBPERL_SONAME=\$(LIBPERL).$version
29 +\$(LIBPERL): \$& \$(obj) \$(DYNALOADER) \$(LIBPERLEXPORT)
33 $spitshell >>Makefile <<'!NO!SUBS!'
35 - $(LD) -o $@ $(SHRPLDFLAGS) $(obj) $(DYNALOADER) $(libs)
36 + rm -f $@ $(LIBPERL_SONAME)
37 + $(LD) -o $(LIBPERL_SONAME) $(SHRPLDFLAGS) -Wl,-soname,$(LIBPERL_SONAME) $(SHRPLDFLAGS) $(obj) $(DYNALOADER) $(libs)
38 + ln -s $(LIBPERL_SONAME) $@