-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperl_581-soname.patch
41 lines (41 loc) · 1.29 KB
/
perl_581-soname.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- 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.
- if test -f $archlib/CORE/$libperl; then
+# if test -f $archlib/CORE/$libperl; then
rm -f preload
cat <<'EOT' > preload
#! /bin/sh
@@ -171,7 +171,7 @@
EOT
chmod 755 preload
ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
- fi
+# fi
;;
os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
;;
@@ -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): \$& \$(perllib_dep) \$(DYNALOADER) \$(LIBPERLEXPORT)
!NO!SUBS!
case "$useshrplib" in
true)
$spitshell >>$Makefile <<'!NO!SUBS!'
- rm -f $@
- $(LD) -o $@ $(SHRPLDFLAGS) $(perllib_objs) $(DYNALOADER) $(libs)
+ rm -f $@ $(LIBPERL_SONAME)
+ $(LD) -o $(LIBPERL_SONAME) $(SHRPLDFLAGS) -Wl,-soname,$(LIBPERL_SONAME) $(SHRPLDFLAGS) $(perllib_objs) $(DYNALOADER) $(libs)
+ ln -s $(LIBPERL_SONAME) $@
!NO!SUBS!
case "$osname" in
aix)