summaryrefslogtreecommitdiff
path: root/regress/lib/libcrypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-06-23 18:09:20 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-06-23 18:09:20 +0000
commit3d9cdd8e946db3f249bada92b2f175491cf98295 (patch)
tree28aa73e8379c76f0f2073317a9c9f5a167ddc65c /regress/lib/libcrypto
parent68202afca6e9ba76b8400f5236324b9e7ad215ef (diff)
Use dynamic linking correctly. bntest and bn_to_string need static linking.
Diffstat (limited to 'regress/lib/libcrypto')
-rw-r--r--regress/lib/libcrypto/bn/general/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/regress/lib/libcrypto/bn/general/Makefile b/regress/lib/libcrypto/bn/general/Makefile
index cc75e7c5ece..913a3db19b0 100644
--- a/regress/lib/libcrypto/bn/general/Makefile
+++ b/regress/lib/libcrypto/bn/general/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.12 2022/06/19 17:08:19 tb Exp $
+# $OpenBSD: Makefile,v 1.13 2022/06/23 18:09:19 tb Exp $
.include "../../Makefile.inc"
@@ -8,13 +8,14 @@ PROGS += bn_mod_sqrt
PROGS += bn_primes
PROGS += bn_to_string
-LDADD = ${LIBCRYPTO}
-DPADD = ${LIBCRYPTO}
+DPADD += ${LIBCRYPTO}
+LDFLAGS += -lcrypto
WARNINGS = Yes
CFLAGS += -Werror
CFLAGS += -I${.CURDIR}/../../../../../lib/libcrypto/bn/
CLEANFILES = bntest.out bc.out
+LDADD_bntest = ${CRYPTO_INT}
REGRESS_TARGETS += run-bntest
run-bntest bntest.out: bntest
./bntest -out bntest.out
@@ -36,6 +37,7 @@ REGRESS_TARGETS += run-bn_primes
run-bn_primes: bn_primes
./bn_primes
+LDADD_bn_to_string = ${CRYPTO_INT}
REGRESS_TARGETS += run-bn_to_string
run-bn_to_string: bn_to_string
./bn_to_string