diff options
author | Brent Cook <busterb@gmail.com> | 2023-07-05 14:27:23 +0300 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-07-05 14:27:23 +0300 |
commit | 642ead359ba9bbeddac2bf0dc593282d0c562092 (patch) | |
tree | 2ed11d966f82cf12676d0bbd09e76078c3788f58 | |
parent | 74be614b0c7e6f0affa4ab0bfb9c2eaab75ea470 (diff) | |
download | portable-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.am | 9 |
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 | ||
22 | libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined -export-symbols $(top_srcdir)/tls/tls.sym | 22 | libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined -export-symbols $(top_srcdir)/tls/tls.sym |
23 | |||
24 | if ENABLE_LIBTLS_ONLY | ||
23 | libtls_la_LIBADD = $(libcrypto_la_objects) | 25 | libtls_la_LIBADD = $(libcrypto_la_objects) |
26 | libtls_la_LIBADD += $(libssl_la_objects) | ||
27 | else | ||
28 | libtls_la_LIBADD = $(abs_top_builddir)/crypto/libcrypto.la | ||
29 | libtls_la_LIBADD += $(abs_top_builddir)/ssl/libssl.la | ||
30 | endif | ||
31 | |||
24 | libtls_la_LIBADD += $(libcompat_la_objects) | 32 | libtls_la_LIBADD += $(libcompat_la_objects) |
25 | libtls_la_LIBADD += $(libcompatnoopt_la_objects) | 33 | libtls_la_LIBADD += $(libcompatnoopt_la_objects) |
26 | libtls_la_LIBADD += $(libssl_la_objects) | ||
27 | libtls_la_LIBADD += $(PLATFORM_LDADD) | 34 | libtls_la_LIBADD += $(PLATFORM_LDADD) |
28 | 35 | ||
29 | libtls_la_CPPFLAGS = $(AM_CPPFLAGS) | 36 | libtls_la_CPPFLAGS = $(AM_CPPFLAGS) |