aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2022-12-13 04:34:25 -0600
committerBrent Cook <busterb@gmail.com>2022-12-13 14:23:17 -0600
commit4f0f6ebd1aa1038923e08af6730a32cde3202f62 (patch)
tree45d4a0d4dbd55384de61e5b02a3d6272ae311571 /tests
parent5a590f8e0c1bb3b3bf7ba02ee7d3ac0c1e09a1ae (diff)
downloadportable-4f0f6ebd1aa1038923e08af6730a32cde3202f62.tar.gz
portable-4f0f6ebd1aa1038923e08af6730a32cde3202f62.tar.bz2
portable-4f0f6ebd1aa1038923e08af6730a32cde3202f62.zip
Build a static test library with all symbols
Build and link a special test library rather than assuming that the build has static libraries available.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am20
1 files changed, 13 insertions, 7 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6fea2eb..26f6b7d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,5 +1,9 @@
1include $(top_srcdir)/Makefile.am.common 1include $(top_srcdir)/Makefile.am.common
2 2
3-include $(abs_top_builddir)/crypto/libcrypto_la_objects.mk
4-include $(abs_top_builddir)/ssl/libssl_la_objects.mk
5-include $(abs_top_builddir)/tls/libtls_la_objects.mk
6
3AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL 7AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL
4 8
5AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 9AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1
@@ -14,13 +18,15 @@ AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl
14AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat 18AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat
15AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/cert.pem\" 19AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/cert.pem\"
16 20
17LDADD = $(abs_top_builddir)/tls/.libs/libtls.a 21noinst_LTLIBRARIES = libtest.la
18LDADD += $(abs_top_builddir)/ssl/.libs/libssl.a 22libtest_la_LIBADD = $(libcrypto_la_objects)
19LDADD += $(abs_top_builddir)/crypto/.libs/libcrypto.a 23libtest_la_LIBADD += $(libcompat_la_objects)
20LDADD += $(PLATFORM_LDADD) $(PROG_LDADD) 24libtest_la_LIBADD += $(libcompatnoopt_la_objects)
21if HOST_ASM_MACOSX_X86_64 25libtest_la_LIBADD += $(libssl_la_objects)
22LDADD += $(abs_top_builddir)/crypto/.libs/libcrypto_la-cpuid-macosx-x86_64.o 26libtest_la_LIBADD += $(libtls_la_objects)
23endif 27libtest_la_SOURCES = empty.c
28
29LDADD = libtest.la $(PLATFORM_LDADD) $(PROG_LDADD)
24 30
25TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/tap-driver.sh 31TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/tap-driver.sh
26 32