bn_primes: there is no need to link this statically. It can pull the
authortb <tb@openbsd.org>
Sun, 26 Mar 2023 18:34:36 +0000 (18:34 +0000)
committertb <tb@openbsd.org>
Sun, 26 Mar 2023 18:34:36 +0000 (18:34 +0000)
primes table in directly.

regress/lib/libcrypto/bn/Makefile

index 71b1f7a..93baac0 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.24 2023/03/18 09:09:11 tb Exp $
+#      $OpenBSD: Makefile,v 1.25 2023/03/26 18:34:36 tb Exp $
 
 PROGS +=       bn_add_sub
 PROGS +=       bn_cmp
@@ -18,7 +18,6 @@ PROGS +=      bn_word
 
 STATIC_LINK += bn_isqrt
 STATIC_LINK += bn_mod_exp
-STATIC_LINK += bn_primes
 STATIC_LINK += bn_rand_interval
 STATIC_LINK += bn_test
 STATIC_LINK += bn_to_string
@@ -70,4 +69,8 @@ benchmark: bn_mul_div bn_shift
 LDADD_$p +=    ${CRYPTO_INT}
 .endfor
 
+SRCS_bn_primes = bn_primes.c bn_small_primes.c
+
+.PATH: ${.CURDIR}/../../../../lib/libcrypto/bn
+
 .include <bsd.regress.mk>