libressl/SUSE-extra-symver.patch

72 lines
2.6 KiB
Diff
Raw Normal View History

From 11a5823b7300099137473775d7ad2128b4420490 Mon Sep 17 00:00:00 2001
2019-11-30 04:54:09 +03:00
From: Jan Engelhardt <jengelh@inai.de>
Date: Thu, 9 Jul 2020 14:11:14 +0000
Subject: [PATCH] SUSE-extra-symver.patch
Redefined by Oleg Solvev <o.solovev@rosalinux.ru>
2019-11-30 04:54:09 +03:00
Add symbol versions into the library to be on par with openssl.
---
crypto/Makefile.am | 7 ++++++-
ssl/Makefile.am | 7 ++++++-
tls/Makefile.am | 7 ++++++-
3 files changed, 18 insertions(+), 3 deletions(-)
2019-11-30 04:54:09 +03:00
diff --git a/crypto/Makefile.am b/crypto/Makefile.am
index b897c00..3a96361 100644
--- a/crypto/Makefile.am
+++ b/crypto/Makefile.am
@@ -93,7 +93,12 @@ if HOST_WIN
2019-11-30 04:54:09 +03:00
-mv crypto_portable.sym.tmp crypto_portable.sym
endif
-libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined -export-symbols crypto_portable.sym
+crypto2.sym: crypto_portable.sym
+ (echo 'LIBRESSL { global: '; sed -e 's/\(.*\)/\1;/' <$<; echo 'local: *; };') >$@
+
+libcrypto_la_DEPENDENCIES = crypto2.sym libcompat.la
+libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined -Wl,--version-script=crypto2.sym
+
EXTRA_libcrypto_la_DEPENDENCIES = crypto_portable.sym
2019-11-30 04:54:09 +03:00
libcrypto_la_LIBADD = libcompat.la
if !HAVE_EXPLICIT_BZERO
diff --git a/ssl/Makefile.am b/ssl/Makefile.am
index a7bb8a3..e01138d 100644
--- a/ssl/Makefile.am
+++ b/ssl/Makefile.am
@@ -7,7 +7,12 @@ EXTRA_DIST += CMakeLists.txt
2019-11-30 04:54:09 +03:00
EXTRA_DIST += ssl.sym
libssl_la_LDFLAGS = -version-info @LIBSSL_VERSION@ -no-undefined -export-symbols $(top_srcdir)/ssl/ssl.sym
-libssl_la_LIBADD = $(abs_top_builddir)/crypto/libcrypto.la $(PLATFORM_LDADD)
2019-11-30 04:54:09 +03:00
+ssl2.sym: ssl.sym
+ (echo 'LIBRESSL { global: '; sed -e 's/\(.*\)/\1;/' <$<; echo 'local: *; };') >$@
+
+libssl_la_DEPENDENCIES = ssl2.sym
+libssl_la_LDFLAGS = -version-info @LIBSSL_VERSION@ -no-undefined -Wl,--version-script=ssl2.sym
+ libssl_la_LIBADD = $(abs_top_builddir)/crypto/libcrypto.la $(PLATFORM_LDADD)
2019-11-30 04:54:09 +03:00
libssl_la_SOURCES = bio_ssl.c
libssl_la_SOURCES += bs_ber.c
diff --git a/tls/Makefile.am b/tls/Makefile.am
index 942abf9..a722ef1 100644
--- a/tls/Makefile.am
+++ b/tls/Makefile.am
@@ -6,7 +6,12 @@ EXTRA_DIST = VERSION
2019-11-30 04:54:09 +03:00
EXTRA_DIST += CMakeLists.txt
EXTRA_DIST += tls.sym
-libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined -export-symbols $(top_srcdir)/tls/tls.sym
+tls2.sym: tls.sym
+ (echo 'LIBRESSL { global: '; sed -e 's/\(.*\)/\1;/' <$<; echo 'local: *; };') >$@
+
+libtls_la_DEPENDENCIES = tls2.sym
+libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined -Wl,--version-script=tls2.sym
+
2019-11-30 04:54:09 +03:00
libtls_la_LIBADD = $(abs_top_builddir)/ssl/libssl.la
libtls_la_LIBADD += $(abs_top_builddir)/crypto/libcrypto.la
libtls_la_LIBADD += $(PLATFORM_LDADD)
--
2.26.2