Only constraints and verify need static linking in here.
authortb <tb@openbsd.org>
Thu, 2 Jun 2022 11:48:36 +0000 (11:48 +0000)
committertb <tb@openbsd.org>
Thu, 2 Jun 2022 11:48:36 +0000 (11:48 +0000)
regress/lib/libcrypto/x509/Makefile
regress/lib/libcrypto/x509/rfc3779/Makefile

index 9981858..1c87ca8 100644 (file)
@@ -1,8 +1,12 @@
-#      $OpenBSD: Makefile,v 1.10 2021/12/24 03:01:23 tb Exp $
+#      $OpenBSD: Makefile,v 1.11 2022/06/02 11:48:36 tb Exp $
 
 PROGS =        constraints verify x509attribute x509name x509req_ext callback
-LDADD= -Wl,-Bstatic -lcrypto -Wl,-Bdynamic
-DPADD= ${LIBCRYPTO}
+LDADD =        -lcrypto
+DPADD =        ${LIBCRYPTO}
+
+LDADD_constraints = ${CRYPTO_INT}
+LDADD_verify = ${CRYPTO_INT}
+
 WARNINGS=      Yes
 CFLAGS+=       -DLIBRESSL_INTERNAL -Wall -Werror -I$(BSDSRCDIR)/lib/libcrypto/x509
 
index b876f62..b0fc4dc 100644 (file)
@@ -1,9 +1,9 @@
-#      $OpenBSD: Makefile,v 1.5 2022/01/07 17:17:02 tb Exp $
+#      $OpenBSD: Makefile,v 1.6 2022/06/02 11:48:36 tb Exp $
 
 .include "../../Makefile.inc"
 
 PROG=  rfc3779
-LDADD= ${CRYPTO_INT}
+LDADD= -lcrypto
 DPADD= ${LIBCRYPTO}
 WARNINGS=      Yes
 CFLAGS+=       -DLIBRESSL_CRYPTO_INTERNAL -DLIBRESSL_INTERNAL -Werror