diff options
author | tb <> | 2022-06-23 18:09:19 +0000 |
---|---|---|
committer | tb <> | 2022-06-23 18:09:19 +0000 |
commit | 5d91c6409c12bb586d296afd1075bec7c2f2a203 (patch) | |
tree | 844930a2dcc659fe2dc69003c4d8a1ac6f128613 /src/regress/lib | |
parent | e03bc5f43e4a40b58624b52b3835dee00efcf87e (diff) | |
download | openbsd-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/Makefile | 8 |
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 | |||
8 | PROGS += bn_primes | 8 | PROGS += bn_primes |
9 | PROGS += bn_to_string | 9 | PROGS += bn_to_string |
10 | 10 | ||
11 | LDADD = ${LIBCRYPTO} | 11 | DPADD += ${LIBCRYPTO} |
12 | DPADD = ${LIBCRYPTO} | 12 | LDFLAGS += -lcrypto |
13 | WARNINGS = Yes | 13 | WARNINGS = Yes |
14 | CFLAGS += -Werror | 14 | CFLAGS += -Werror |
15 | CFLAGS += -I${.CURDIR}/../../../../../lib/libcrypto/bn/ | 15 | CFLAGS += -I${.CURDIR}/../../../../../lib/libcrypto/bn/ |
16 | CLEANFILES = bntest.out bc.out | 16 | CLEANFILES = bntest.out bc.out |
17 | 17 | ||
18 | LDADD_bntest = ${CRYPTO_INT} | ||
18 | REGRESS_TARGETS += run-bntest | 19 | REGRESS_TARGETS += run-bntest |
19 | run-bntest bntest.out: bntest | 20 | run-bntest bntest.out: bntest |
20 | ./bntest -out bntest.out | 21 | ./bntest -out bntest.out |
@@ -36,6 +37,7 @@ REGRESS_TARGETS += run-bn_primes | |||
36 | run-bn_primes: bn_primes | 37 | run-bn_primes: bn_primes |
37 | ./bn_primes | 38 | ./bn_primes |
38 | 39 | ||
40 | LDADD_bn_to_string = ${CRYPTO_INT} | ||
39 | REGRESS_TARGETS += run-bn_to_string | 41 | REGRESS_TARGETS += run-bn_to_string |
40 | run-bn_to_string: bn_to_string | 42 | run-bn_to_string: bn_to_string |
41 | ./bn_to_string | 43 | ./bn_to_string |