From 642ead359ba9bbeddac2bf0dc593282d0c562092 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 5 Jul 2023 14:27:23 +0300 Subject: only link libtls statically to libssl/libcrypto when building standalone --- tls/Makefile.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tls') diff --git a/tls/Makefile.am b/tls/Makefile.am index d5725c3..22f3222 100644 --- a/tls/Makefile.am +++ b/tls/Makefile.am @@ -20,10 +20,17 @@ libtls_la_objects.mk: Makefile > libtls_la_objects.mk libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined -export-symbols $(top_srcdir)/tls/tls.sym + +if ENABLE_LIBTLS_ONLY libtls_la_LIBADD = $(libcrypto_la_objects) +libtls_la_LIBADD += $(libssl_la_objects) +else +libtls_la_LIBADD = $(abs_top_builddir)/crypto/libcrypto.la +libtls_la_LIBADD += $(abs_top_builddir)/ssl/libssl.la +endif + libtls_la_LIBADD += $(libcompat_la_objects) libtls_la_LIBADD += $(libcompatnoopt_la_objects) -libtls_la_LIBADD += $(libssl_la_objects) libtls_la_LIBADD += $(PLATFORM_LDADD) libtls_la_CPPFLAGS = $(AM_CPPFLAGS) -- cgit v1.2.3-55-g6feb