|
|
78f1eb |
From fa2f0dd5a7767223df10149d3f16d7ed7013e16f Mon Sep 17 00:00:00 2001
|
|
|
78f1eb |
From: Torsten Veller <tove@gentoo.org>
|
|
|
78f1eb |
Date: Sat, 14 Apr 2012 13:49:18 +0200
|
|
|
78f1eb |
Subject: Set libperl soname
|
|
|
78f1eb |
|
|
|
78f1eb |
Bug-Gentoo: https://bugs.gentoo.org/286840
|
|
|
78f1eb |
|
|
|
78f1eb |
Patch-Name: gentoo/create_libperl_soname.diff
|
|
|
78f1eb |
---
|
|
|
78f1eb |
Makefile.SH | 9 +++++++--
|
|
|
78f1eb |
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
|
78f1eb |
|
|
|
78f1eb |
diff --git a/Makefile.SH b/Makefile.SH
|
|
|
78f1eb |
index d1da0a0..7733a32 100755
|
|
|
78f1eb |
--- a/Makefile.SH
|
|
|
78f1eb |
+++ b/Makefile.SH
|
|
|
78f1eb |
@@ -70,11 +70,11 @@ true)
|
|
|
78f1eb |
${revision}.${patchlevel}.${subversion}"
|
|
|
78f1eb |
case "$osvers" in
|
|
|
78f1eb |
1[5-9]*|[2-9]*)
|
|
|
78f1eb |
- shrpldflags="$shrpldflags -install_name `pwd`/\$@ -Xlinker -headerpad_max_install_names"
|
|
|
78f1eb |
+ shrpldflags="$shrpldflags -install_name `pwd`/libperl.${revision}.${patchlevel}.dylib -Xlinker -headerpad_max_install_names"
|
|
|
78f1eb |
exeldflags="-Xlinker -headerpad_max_install_names"
|
|
|
78f1eb |
;;
|
|
|
78f1eb |
*)
|
|
|
78f1eb |
- shrpldflags="$shrpldflags -install_name \$(shrpdir)/\$@"
|
|
|
78f1eb |
+ shrpldflags="$shrpldflags -install_name \$(shrpdir)/libperl.${revision}.${patchlevel}.dylib"
|
|
|
78f1eb |
;;
|
|
|
78f1eb |
esac
|
|
|
78f1eb |
;;
|
|
|
78f1eb |
@@ -76,13 +76,15 @@ true)
|
|
|
78f1eb |
;;
|
|
|
78f1eb |
sunos*)
|
|
|
78f1eb |
linklibperl="-lperl"
|
|
|
78f1eb |
+ shrpldflags="$shrpldflags -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
|
78f1eb |
;;
|
|
|
78f1eb |
netbsd*|freebsd[234]*|openbsd*|dragonfly*|bitrig*)
|
|
|
78f1eb |
linklibperl="-L. -lperl"
|
|
|
78f1eb |
+ shrpldflags="$shrpldflags -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
|
78f1eb |
;;
|
|
|
78f1eb |
interix*)
|
|
|
78f1eb |
linklibperl="-L. -lperl"
|
|
|
78f1eb |
- shrpldflags="$shrpldflags -Wl,--image-base,0x57000000"
|
|
|
78f1eb |
+ shrpldflags="$shrpldflags -Wl,--image-base,0x57000000 -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
|
78f1eb |
;;
|
|
|
78f1eb |
aix*)
|
|
|
78f1eb |
case "$cc" in
|
|
|
78f1eb |
@@ -120,6 +122,9 @@ true)
|
|
|
78f1eb |
linklibperl='libperl.x'
|
|
|
78f1eb |
DPERL_EXTERNAL_GLOB=''
|
|
|
78f1eb |
;;
|
|
|
78f1eb |
+ linux*)
|
|
|
78f1eb |
+ shrpldflags="$shrpldflags -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
|
78f1eb |
+ ;;
|
|
|
78f1eb |
esac
|
|
|
78f1eb |
case "$ldlibpthname" in
|
|
|
78f1eb |
'') ;;
|