openssl098/openssl-0.9.8l-symbolVersioning.patch

41 lines
1.3 KiB
Diff

--- openssl-0.9.8l.orig/Configure 2009-11-05 07:07:06.000000000 -0500
+++ openssl-0.9.8l/Configure 2010-03-14 18:18:14.000000000 -0400
@@ -1434,6 +1434,8 @@
$shlib_minor=$2;
}
+$shared_ldflag .= " -Wl,--version-script=openssl.ld";
+
open(IN,'<Makefile.org') || die "unable to read Makefile.org:$!\n";
unlink("$Makefile.new") || die "unable to remove old $Makefile.new:$!\n" if -e "$Makefile.new";
open(OUT,">$Makefile.new") || die "unable to create $Makefile.new:$!\n";
--- openssl-0.9.8l.orig/Makefile 2009-11-05 11:15:53.000000000 -0500
+++ openssl-0.9.8l/Makefile 2010-03-14 18:19:12.000000000 -0400
@@ -168,9 +168,9 @@
SHARED_CRYPTO=libcrypto$(SHLIB_EXT)
SHARED_SSL=libssl$(SHLIB_EXT)
SHARED_FIPS=
-SHARED_LIBS=
-SHARED_LIBS_LINK_EXTS=
-SHARED_LDFLAGS=
+SHARED_LIBS=$(SHARED_FIPS) $(SHARED_CRYPTO) $(SHARED_SSL)
+SHARED_LIBS_LINK_EXTS=.so.$(SHLIB_MAJOR) .so
+SHARED_LDFLAGS=-m64 -Wl,--version-script=openssl.ld
GENERAL= Makefile
BASENAME= openssl
--- openssl-0.9.8l.orig/engines/openssl.ld 1969-12-31 19:00:00.000000000 -0500
+++ openssl-0.9.8l/engines/openssl.ld 2010-03-14 18:18:55.000000000 -0400
@@ -0,0 +1,4 @@
+OPENSSL_0.9.8 {
+ global:
+ *;
+};
--- openssl-0.9.8l.orig/openssl.ld 1969-12-31 19:00:00.000000000 -0500
+++ openssl-0.9.8l/openssl.ld 2010-03-14 18:18:15.000000000 -0400
@@ -0,0 +1,4 @@
+OPENSSL_0.9.8 {
+ global:
+ *;
+};