From 7aef5fd99b1d328cb92dd1edc165baf80eb75730 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 23 Jun 2022 18:09:19 +0000 Subject: [PATCH] Use dynamic linking correctly. bntest and bn_to_string need static linking. --- regress/lib/libcrypto/bn/general/Makefile | 8 +++++--- 1 file 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 -- 2.20.1