mirror of
https://abf.rosa.ru/djam/libressl.git
synced 2025-02-23 16:12:53 +00:00
71 lines
2.6 KiB
Diff
71 lines
2.6 KiB
Diff
From 11a5823b7300099137473775d7ad2128b4420490 Mon Sep 17 00:00:00 2001
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: Thu, 9 Jul 2020 14:11:14 +0000
|
|
Subject: [PATCH] SUSE-extra-symver.patch
|
|
|
|
Add symbol versions into the library to be on par with openssl.
|
|
|
|
Rediffed by Oleg Solvev <o.solovev@rosalinux.ru>
|
|
---
|
|
crypto/Makefile.am | 7 ++++++-
|
|
ssl/Makefile.am | 7 ++++++-
|
|
tls/Makefile.am | 7 ++++++-
|
|
3 files changed, 18 insertions(+), 3 deletions(-)
|
|
|
|
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
|
|
-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
|
|
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
|
|
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)
|
|
+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)
|
|
|
|
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
|
|
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
|
|
+
|
|
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
|
|
|