55 lines
1.7 KiB
Diff
55 lines
1.7 KiB
Diff
From fe7ae3db489775f409b9284c5e81ce91ab8578da Mon Sep 17 00:00:00 2001
|
|
From: Torsten Veller <tove@gentoo.org>
|
|
Date: Mon, 30 Dec 2019 15:10:30 +0800
|
|
Subject: [PATCH] create libperl soname
|
|
|
|
See details: https://bugs.gentoo.org/286840
|
|
|
|
---
|
|
Makefile.SH | 8 +++++++-
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Makefile.SH b/Makefile.SH
|
|
index 123903d..e73f0ec 100755
|
|
--- a/Makefile.SH
|
|
+++ b/Makefile.SH
|
|
@@ -68,7 +68,7 @@ true)
|
|
${api_revision}.${api_version}.${api_subversion} \
|
|
-current_version \
|
|
${revision}.${patchlevel}.${subversion} \
|
|
- -install_name \$(shrpdir)/\$@"
|
|
+ -install_name \$(shrpdir)/libperl.${revision}.${patchlevel}.dylib"
|
|
;;
|
|
cygwin*)
|
|
shrpldflags="$shrpldflags -Wl,--out-implib=libperl.dll.a -Wl,--image-base,0x52000000"
|
|
@@ -76,13 +76,16 @@ true)
|
|
;;
|
|
sunos*)
|
|
linklibperl="-lperl"
|
|
+ shrpldflags="$shrpldflags -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
;;
|
|
netbsd*|freebsd[234]*|openbsd*|dragonfly*|bitrig*)
|
|
linklibperl="-L. -lperl"
|
|
+ shrpldflags="$shrpldflags -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
;;
|
|
interix*)
|
|
linklibperl="-L. -lperl"
|
|
shrpldflags="$shrpldflags -Wl,--image-base,0x57000000"
|
|
+ shrpldflags="$shrpldflags -Wl,--image-base,0x57000000 -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
;;
|
|
aix*)
|
|
case "$cc" in
|
|
@@ -120,6 +123,9 @@ true)
|
|
linklibperl='libperl.x'
|
|
DPERL_EXTERNAL_GLOB=''
|
|
;;
|
|
+ linux*)
|
|
+ shrpldflags="$shrpldflags -Wl,-soname -Wl,libperl.so.${revision}.${patchlevel}"
|
|
+ ;;
|
|
esac
|
|
case "$ldlibpthname" in
|
|
'') ;;
|
|
--
|
|
1.8.3.1
|
|
|