summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-11-04 17:51:55 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-11-04 17:51:55 +0000
commit597bda12c72cf0c7ba557f20e0b53630a87afc8a (patch)
tree7d0cd4ba04b3b48539a85dce807959eaa75974d7 /regress/lib
parent1770b50c2510982b01bc1d9e26b02ccd2a8cbe1f (diff)
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@
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libssl/Makefile.inc2
-rw-r--r--regress/lib/libssl/bytestring/Makefile4
-rw-r--r--regress/lib/libssl/unit/Makefile8
-rw-r--r--regress/lib/libtls/verify/Makefile4
4 files changed, 10 insertions, 8 deletions
diff --git a/regress/lib/libssl/Makefile.inc b/regress/lib/libssl/Makefile.inc
new file mode 100644
index 00000000000..a8880845e96
--- /dev/null
+++ b/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/regress/lib/libssl/bytestring/Makefile b/regress/lib/libssl/bytestring/Makefile
index cc271b1b64e..162c81d255b 100644
--- a/regress/lib/libssl/bytestring/Makefile
+++ b/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/regress/lib/libssl/unit/Makefile b/regress/lib/libssl/unit/Makefile
index 1bfdea82ebd..1873be69239 100644
--- a/regress/lib/libssl/unit/Makefile
+++ b/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 <bsd.regress.mk>
diff --git a/regress/lib/libtls/verify/Makefile b/regress/lib/libtls/verify/Makefile
index 94bc9760065..c66348a8a6e 100644
--- a/regress/lib/libtls/verify/Makefile
+++ b/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