summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authortb <>2022-06-23 18:09:19 +0000
committertb <>2022-06-23 18:09:19 +0000
commit5d91c6409c12bb586d296afd1075bec7c2f2a203 (patch)
tree844930a2dcc659fe2dc69003c4d8a1ac6f128613 /src/regress/lib
parente03bc5f43e4a40b58624b52b3835dee00efcf87e (diff)
downloadopenbsd-5d91c6409c12bb586d296afd1075bec7c2f2a203.tar.gz
openbsd-5d91c6409c12bb586d296afd1075bec7c2f2a203.tar.bz2
openbsd-5d91c6409c12bb586d296afd1075bec7c2f2a203.zip
Use dynamic linking correctly. bntest and bn_to_string need static linking.
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libcrypto/bn/general/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/bn/general/Makefile b/src/regress/lib/libcrypto/bn/general/Makefile
index cc75e7c5ec..913a3db19b 100644
--- a/src/regress/lib/libcrypto/bn/general/Makefile
+++ b/src/regress/lib/libcrypto/bn/general/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.12 2022/06/19 17:08:19 tb Exp $ 1# $OpenBSD: Makefile,v 1.13 2022/06/23 18:09:19 tb Exp $
2 2
3.include "../../Makefile.inc" 3.include "../../Makefile.inc"
4 4
@@ -8,13 +8,14 @@ PROGS += bn_mod_sqrt
8PROGS += bn_primes 8PROGS += bn_primes
9PROGS += bn_to_string 9PROGS += bn_to_string
10 10
11LDADD = ${LIBCRYPTO} 11DPADD += ${LIBCRYPTO}
12DPADD = ${LIBCRYPTO} 12LDFLAGS += -lcrypto
13WARNINGS = Yes 13WARNINGS = Yes
14CFLAGS += -Werror 14CFLAGS += -Werror
15CFLAGS += -I${.CURDIR}/../../../../../lib/libcrypto/bn/ 15CFLAGS += -I${.CURDIR}/../../../../../lib/libcrypto/bn/
16CLEANFILES = bntest.out bc.out 16CLEANFILES = bntest.out bc.out
17 17
18LDADD_bntest = ${CRYPTO_INT}
18REGRESS_TARGETS += run-bntest 19REGRESS_TARGETS += run-bntest
19run-bntest bntest.out: bntest 20run-bntest bntest.out: bntest
20 ./bntest -out bntest.out 21 ./bntest -out bntest.out
@@ -36,6 +37,7 @@ REGRESS_TARGETS += run-bn_primes
36run-bn_primes: bn_primes 37run-bn_primes: bn_primes
37 ./bn_primes 38 ./bn_primes
38 39
40LDADD_bn_to_string = ${CRYPTO_INT}
39REGRESS_TARGETS += run-bn_to_string 41REGRESS_TARGETS += run-bn_to_string
40run-bn_to_string: bn_to_string 42run-bn_to_string: bn_to_string
41 ./bn_to_string 43 ./bn_to_string