Tweaks to create properly versioned shared libraries

This commit is contained in:
Tom G. Christensen 2004-01-07 09:17:02 +00:00 committed by tgc
parent 6294b9b302
commit 462d0b19ea
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- openssl-0.9.7c/Configure.orig 2003-12-27 20:24:05.940000000 +0100
+++ openssl-0.9.7c/Configure 2003-12-27 20:25:42.690000000 +0100
@@ -1259,7 +1259,7 @@
elsif ($shared_extension ne "" && $shared_extension =~ /^\.s([ol])\.[^\.]*\.[^\.]*$/)
{
my $sotmp = $1;
- s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
+ s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp/;
}
elsif ($shared_extension ne "" && $shared_extension =~ /^\.[^\.]*\.[^\.]*\.dylib$/)
{

View File

@ -0,0 +1,10 @@
--- openssl-0.9.7c/Makefile.org.origc 2004-01-06 15:20:40.890005000 +0100
+++ openssl-0.9.7c/Makefile.org 2004-01-06 15:22:02.059996000 +0100
@@ -390,6 +390,7 @@
MINUSZ='-z '; \
(${CC} -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \
set -x; ${CC} ${SHARED_LDFLAGS} -G -dy -z text \
+ -Wl,-R,@LIBDIR@ \
-o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
-h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
$${MINUSZ}allextract lib$$i.a $${MINUSZ}defaultextract \