diff options
author | guenther <> | 2016-11-04 17:51:54 +0000 |
---|---|---|
committer | guenther <> | 2016-11-04 17:51:54 +0000 |
commit | 40cb990b803537837f7b38fd65d2d48fec20e014 (patch) | |
tree | 31917d2faf2cb092ab4e9783a64a10f34e48ba52 | |
parent | 247b083db1529704b5b7f31b26a406c50cdd32b0 (diff) | |
download | openbsd-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.inc | 2 | ||||
-rw-r--r-- | src/regress/lib/libssl/bytestring/Makefile | 4 | ||||
-rw-r--r-- | src/regress/lib/libssl/unit/Makefile | 8 | ||||
-rw-r--r-- | src/regress/lib/libtls/verify/Makefile | 4 |
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 | ||
2 | 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 @@ | |||
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 | ||
3 | PROG= bytestringtest | 3 | PROG= bytestringtest |
4 | LDADD= -lcrypto -lssl | 4 | LDADD= ${SSL_INT} -lcrypto |
5 | DPADD= ${LIBCRYPTO} ${LIBSSL} | 5 | DPADD= ${LIBCRYPTO} ${LIBSSL} |
6 | WARNINGS= Yes | 6 | WARNINGS= Yes |
7 | CFLAGS+= -DLIBRESSL_INTERNAL -Wundef -Werror -I$(BSDSRCDIR)/lib/libssl | 7 | 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 @@ | |||
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 | ||
3 | TEST_CASES+= cipher_list | 3 | TEST_CASES+= cipher_list |
4 | TEST_CASES+= tls_ext_alpn | 4 | TEST_CASES+= tls_ext_alpn |
5 | 5 | ||
6 | REGRESS_TARGETS= all_tests | 6 | REGRESS_TARGETS= all_tests |
7 | 7 | ||
8 | LDADD= -lcrypto -lssl | ||
9 | DPADD= ${LIBCRYPTO} ${LIBSSL} | ||
10 | WARNINGS= Yes | 8 | WARNINGS= Yes |
11 | LDFLAGS+= -lcrypto -lssl | 9 | LDLIBS= ${SSL_INT} -lcrypto |
12 | CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror | 10 | CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror |
13 | 11 | ||
14 | CLEANFILES+= ${TEST_CASES} | 12 | CLEANFILES+= ${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 | ||
3 | PROG= verifytest | 3 | PROG= verifytest |
4 | LDADD= -lcrypto -lssl -ltls | 4 | LDADD= -lcrypto -lssl -Wl,-Bstatic -ltls -Wl,-Bdynamic |
5 | DPADD= ${LIBCRYPTO} ${LIBSSL} ${LIBTLS} | 5 | DPADD= ${LIBCRYPTO} ${LIBSSL} ${LIBTLS} |
6 | 6 | ||
7 | WARNINGS= Yes | 7 | WARNINGS= Yes |