summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguenther <>2016-11-04 17:51:54 +0000
committerguenther <>2016-11-04 17:51:54 +0000
commit40cb990b803537837f7b38fd65d2d48fec20e014 (patch)
tree31917d2faf2cb092ab4e9783a64a10f34e48ba52
parent247b083db1529704b5b7f31b26a406c50cdd32b0 (diff)
downloadopenbsd-40cb990b803537837f7b38fd65d2d48fec20e014.tar.gz
openbsd-40cb990b803537837f7b38fd65d2d48fec20e014.tar.bz2
openbsd-40cb990b803537837f7b38fd65d2d48fec20e014.zip
Some tests require internal symbols; have them link with the static
libssl or libtls so they can continue to see them after the shared library namespace is cleaned up ok jsing@
-rw-r--r--src/regress/lib/libssl/Makefile.inc2
-rw-r--r--src/regress/lib/libssl/bytestring/Makefile4
-rw-r--r--src/regress/lib/libssl/unit/Makefile8
-rw-r--r--src/regress/lib/libtls/verify/Makefile4
4 files changed, 10 insertions, 8 deletions
diff --git a/src/regress/lib/libssl/Makefile.inc b/src/regress/lib/libssl/Makefile.inc
new file mode 100644
index 0000000000..a8880845e9
--- /dev/null
+++ b/src/regress/lib/libssl/Makefile.inc
@@ -0,0 +1,2 @@
1# Use this variable when the test needs internal symbols from libssl
2SSL_INT= -Wl,-Bstatic -lssl -Wl,-Bdynamic
diff --git a/src/regress/lib/libssl/bytestring/Makefile b/src/regress/lib/libssl/bytestring/Makefile
index cc271b1b64..162c81d255 100644
--- a/src/regress/lib/libssl/bytestring/Makefile
+++ b/src/regress/lib/libssl/bytestring/Makefile
@@ -1,7 +1,7 @@
1# $OpenBSD: Makefile,v 1.4 2016/09/02 17:31:04 beck Exp $ 1# $OpenBSD: Makefile,v 1.5 2016/11/04 17:51:54 guenther Exp $
2 2
3PROG= bytestringtest 3PROG= bytestringtest
4LDADD= -lcrypto -lssl 4LDADD= ${SSL_INT} -lcrypto
5DPADD= ${LIBCRYPTO} ${LIBSSL} 5DPADD= ${LIBCRYPTO} ${LIBSSL}
6WARNINGS= Yes 6WARNINGS= Yes
7CFLAGS+= -DLIBRESSL_INTERNAL -Wundef -Werror -I$(BSDSRCDIR)/lib/libssl 7CFLAGS+= -DLIBRESSL_INTERNAL -Wundef -Werror -I$(BSDSRCDIR)/lib/libssl
diff --git a/src/regress/lib/libssl/unit/Makefile b/src/regress/lib/libssl/unit/Makefile
index 1bfdea82eb..1873be6923 100644
--- a/src/regress/lib/libssl/unit/Makefile
+++ b/src/regress/lib/libssl/unit/Makefile
@@ -1,14 +1,12 @@
1# $OpenBSD: Makefile,v 1.5 2016/09/03 16:52:18 bcook Exp $ 1# $OpenBSD: Makefile,v 1.6 2016/11/04 17:51:54 guenther Exp $
2 2
3TEST_CASES+= cipher_list 3TEST_CASES+= cipher_list
4TEST_CASES+= tls_ext_alpn 4TEST_CASES+= tls_ext_alpn
5 5
6REGRESS_TARGETS= all_tests 6REGRESS_TARGETS= all_tests
7 7
8LDADD= -lcrypto -lssl
9DPADD= ${LIBCRYPTO} ${LIBSSL}
10WARNINGS= Yes 8WARNINGS= Yes
11LDFLAGS+= -lcrypto -lssl 9LDLIBS= ${SSL_INT} -lcrypto
12CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror 10CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror
13 11
14CLEANFILES+= ${TEST_CASES} 12CLEANFILES+= ${TEST_CASES}
@@ -18,4 +16,6 @@ all_tests: ${TEST_CASES}
18 ./$$test; \ 16 ./$$test; \
19 done 17 done
20 18
19${TEST_CASES}: ${LIBSSL} ${LIBCRYPTO}
20
21.include <bsd.regress.mk> 21.include <bsd.regress.mk>
diff --git a/src/regress/lib/libtls/verify/Makefile b/src/regress/lib/libtls/verify/Makefile
index 94bc976006..c66348a8a6 100644
--- a/src/regress/lib/libtls/verify/Makefile
+++ b/src/regress/lib/libtls/verify/Makefile
@@ -1,7 +1,7 @@
1# $OpenBSD: Makefile,v 1.1 2014/11/01 11:55:27 jsing Exp $ 1# $OpenBSD: Makefile,v 1.2 2016/11/04 17:51:54 guenther Exp $
2 2
3PROG= verifytest 3PROG= verifytest
4LDADD= -lcrypto -lssl -ltls 4LDADD= -lcrypto -lssl -Wl,-Bstatic -ltls -Wl,-Bdynamic
5DPADD= ${LIBCRYPTO} ${LIBSSL} ${LIBTLS} 5DPADD= ${LIBCRYPTO} ${LIBSSL} ${LIBTLS}
6 6
7WARNINGS= Yes 7WARNINGS= Yes