From 40cb990b803537837f7b38fd65d2d48fec20e014 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Fri, 4 Nov 2016 17:51:54 +0000 Subject: 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@ --- src/regress/lib/libssl/Makefile.inc | 2 ++ src/regress/lib/libssl/bytestring/Makefile | 4 ++-- src/regress/lib/libssl/unit/Makefile | 8 ++++---- src/regress/lib/libtls/verify/Makefile | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 src/regress/lib/libssl/Makefile.inc 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 @@ +# Use this variable when the test needs internal symbols from libssl +SSL_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 @@ -# $OpenBSD: Makefile,v 1.4 2016/09/02 17:31:04 beck Exp $ +# $OpenBSD: Makefile,v 1.5 2016/11/04 17:51:54 guenther Exp $ PROG= bytestringtest -LDADD= -lcrypto -lssl +LDADD= ${SSL_INT} -lcrypto DPADD= ${LIBCRYPTO} ${LIBSSL} WARNINGS= Yes CFLAGS+= -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 @@ -# $OpenBSD: Makefile,v 1.5 2016/09/03 16:52:18 bcook Exp $ +# $OpenBSD: Makefile,v 1.6 2016/11/04 17:51:54 guenther Exp $ TEST_CASES+= cipher_list TEST_CASES+= tls_ext_alpn REGRESS_TARGETS= all_tests -LDADD= -lcrypto -lssl -DPADD= ${LIBCRYPTO} ${LIBSSL} WARNINGS= Yes -LDFLAGS+= -lcrypto -lssl +LDLIBS= ${SSL_INT} -lcrypto CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror CLEANFILES+= ${TEST_CASES} @@ -18,4 +16,6 @@ all_tests: ${TEST_CASES} ./$$test; \ done +${TEST_CASES}: ${LIBSSL} ${LIBCRYPTO} + .include 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 @@ -# $OpenBSD: Makefile,v 1.1 2014/11/01 11:55:27 jsing Exp $ +# $OpenBSD: Makefile,v 1.2 2016/11/04 17:51:54 guenther Exp $ PROG= verifytest -LDADD= -lcrypto -lssl -ltls +LDADD= -lcrypto -lssl -Wl,-Bstatic -ltls -Wl,-Bdynamic DPADD= ${LIBCRYPTO} ${LIBSSL} ${LIBTLS} WARNINGS= Yes -- cgit v1.2.3-55-g6feb