aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-07-05 14:27:23 +0300
committerBrent Cook <busterb@gmail.com>2023-07-05 14:27:23 +0300
commit642ead359ba9bbeddac2bf0dc593282d0c562092 (patch)
tree2ed11d966f82cf12676d0bbd09e76078c3788f58
parent74be614b0c7e6f0affa4ab0bfb9c2eaab75ea470 (diff)
downloadportable-642ead359ba9bbeddac2bf0dc593282d0c562092.tar.gz
portable-642ead359ba9bbeddac2bf0dc593282d0c562092.tar.bz2
portable-642ead359ba9bbeddac2bf0dc593282d0c562092.zip
only link libtls statically to libssl/libcrypto when building standalone
-rw-r--r--tls/Makefile.am9
1 files changed, 8 insertions, 1 deletions
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
20 > libtls_la_objects.mk 20 > libtls_la_objects.mk
21 21
22libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined -export-symbols $(top_srcdir)/tls/tls.sym 22libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined -export-symbols $(top_srcdir)/tls/tls.sym
23
24if ENABLE_LIBTLS_ONLY
23libtls_la_LIBADD = $(libcrypto_la_objects) 25libtls_la_LIBADD = $(libcrypto_la_objects)
26libtls_la_LIBADD += $(libssl_la_objects)
27else
28libtls_la_LIBADD = $(abs_top_builddir)/crypto/libcrypto.la
29libtls_la_LIBADD += $(abs_top_builddir)/ssl/libssl.la
30endif
31
24libtls_la_LIBADD += $(libcompat_la_objects) 32libtls_la_LIBADD += $(libcompat_la_objects)
25libtls_la_LIBADD += $(libcompatnoopt_la_objects) 33libtls_la_LIBADD += $(libcompatnoopt_la_objects)
26libtls_la_LIBADD += $(libssl_la_objects)
27libtls_la_LIBADD += $(PLATFORM_LDADD) 34libtls_la_LIBADD += $(PLATFORM_LDADD)
28 35
29libtls_la_CPPFLAGS = $(AM_CPPFLAGS) 36libtls_la_CPPFLAGS = $(AM_CPPFLAGS)