|
|
f6ea51 |
From fa2f0dd5a7767223df10149d3f16d7ed7013e16f Mon Sep 17 00:00:00 2001
|
|
|
f6ea51 |
From: Torsten Veller <tove@gentoo.org>
|
|
|
f6ea51 |
Date: Sat, 14 Apr 2012 13:49:18 +0200
|
|
|
f6ea51 |
Subject: Set libperl soname
|
|
|
f6ea51 |
|
|
|
f6ea51 |
Bug-Gentoo: https://bugs.gentoo.org/286840
|
|
|
f6ea51 |
|
|
|
f6ea51 |
Patch-Name: gentoo/create_libperl_soname.diff
|
|
|
f6ea51 |
---
|
|
|
f6ea51 |
Makefile.SH | 9 +++++++--
|
|
|
f6ea51 |
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
|
f6ea51 |
|
|
|
f6ea51 |
diff --git a/Makefile.SH b/Makefile.SH
|
|
|
f6ea51 |
index d1da0a0..7733a32 100755
|
|
|
f6ea51 |
--- a/Makefile.SH
|
|
|
f6ea51 |
+++ b/Makefile.SH
|
|
|
f6ea51 |
@@ -58,7 +58,7 @@ true)
|
|
|
f6ea51 |
${api_revision}.${api_version}.${api_subversion} \
|
|
|
f6ea51 |
-current_version \
|
|
|
f6ea51 |
${revision}.${patchlevel}.${subversion} \
|
|
|
f6ea51 |
- -install_name \$(shrpdir)/\$@"
|
|
|
f6ea51 |
+ -install_name \$(shrpdir)/libperl.${revision}.${patchlevel}.dylib"
|
|
|
f6ea51 |
;;
|
|
|
f6ea51 |
cygwin*)
|
|
|
f6ea51 |
shrpldflags="$shrpldflags -Wl,--out-implib=libperl.dll.a -Wl,--image-base,0x52000000"
|
|
|
f6ea51 |
@@ -66,13 +66,15 @@ true)
|
|
|
f6ea51 |
;;
|
|
|
f6ea51 |
sunos*)
|
|
|
f6ea51 |
linklibperl="-lperl"
|
|
|
f6ea51 |
+ shrpldflags="$shrpldflags -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
|
f6ea51 |
;;
|
|
|
f6ea51 |
netbsd*|freebsd[234]*|openbsd*|dragonfly*|bitrig*)
|
|
|
f6ea51 |
linklibperl="-L. -lperl"
|
|
|
f6ea51 |
+ shrpldflags="$shrpldflags -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
|
f6ea51 |
;;
|
|
|
f6ea51 |
interix*)
|
|
|
f6ea51 |
linklibperl="-L. -lperl"
|
|
|
f6ea51 |
- shrpldflags="$shrpldflags -Wl,--image-base,0x57000000"
|
|
|
f6ea51 |
+ shrpldflags="$shrpldflags -Wl,--image-base,0x57000000 -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
|
f6ea51 |
;;
|
|
|
f6ea51 |
aix*)
|
|
|
f6ea51 |
case "$cc" in
|
|
|
f6ea51 |
@@ -110,6 +112,9 @@ true)
|
|
|
f6ea51 |
linklibperl='libperl.x'
|
|
|
f6ea51 |
DPERL_EXTERNAL_GLOB=''
|
|
|
f6ea51 |
;;
|
|
|
f6ea51 |
+ linux*)
|
|
|
f6ea51 |
+ shrpldflags="$shrpldflags -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
|
f6ea51 |
+ ;;
|
|
|
f6ea51 |
esac
|
|
|
f6ea51 |
case "$ldlibpthname" in
|
|
|
f6ea51 |
'') ;;
|