]> git.pld-linux.org Git - packages/perl.git/blob - perl_581-soname.patch
d968f18e7bdfb80fddd02448202e4148065c3762
[packages/perl.git] / perl_581-soname.patch
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
3 @@ -160,7 +160,7 @@
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
9                 rm -f preload
10                 cat <<'EOT' > preload
11  #! /bin/sh
12 @@ -171,7 +171,7 @@
13  EOT
14                 chmod 755 preload
15                 ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
16 -           fi
17 +#          fi
18             ;;
19         os390)  test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
20                 ;;
21 @@ -728,14 +728,16 @@
22  !NO!SUBS!
23                 ;;
24      esac
25 -       $spitshell >>$Makefile <<'!NO!SUBS!'
26 -$(LIBPERL): $& $(perllib_objs) $(DYNALOADER) $(LIBPERLEXPORT)
27 +       $spitshell >>Makefile <<!NO!SUBS!
28 +LIBPERL_SONAME=\$(LIBPERL).$version
29 +\$(LIBPERL): \$& \$(perllib_objs) \$(DYNALOADER) \$(LIBPERLEXPORT)
30  !NO!SUBS!
31         case "$useshrplib" in
32         true)
33                 $spitshell >>$Makefile <<'!NO!SUBS!'
34 -       rm -f $@
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) $@
39  !NO!SUBS!
40                 case "$osname" in
41                 aix)
This page took 0.019679 seconds and 2 git commands to generate.