Move HAVE_FUNOPEN out of !NOPIC
authortb <tb@openbsd.org>
Sat, 29 Jul 2023 06:46:20 +0000 (06:46 +0000)
committertb <tb@openbsd.org>
Sat, 29 Jul 2023 06:46:20 +0000 (06:46 +0000)
Due to some historic accident, HAVE_FUNOPEN was grouped with DSO_DLFCN
and HAVE_DLFCN_H inside !defined(NOPIC). While the two DLFCN bits belong
there, HAVE_FUNOPEN doesn't.

ok jsing, millert agrees

lib/libcrypto/Makefile

index 390eb06..c882c1a 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.152 2023/07/28 11:08:01 jsing Exp $
+# $OpenBSD: Makefile,v 1.153 2023/07/29 06:46:20 tb Exp $
 
 LIB=   crypto
 LIBREBUILD=y
@@ -22,11 +22,7 @@ CFLAGS+= -DLIBRESSL_INTERNAL
 .ifdef NAMESPACE
 CFLAGS+= -DLIBRESSL_NAMESPACE -DLIBRESSL_CRYPTO_NAMESPACE
 .endif
-
-
-.if !defined(NOPIC)
 CFLAGS+= -DHAVE_FUNOPEN
-.endif
 
 CFLAGS+= -I${LCRYPTO_SRC}
 CFLAGS+= -I${LCRYPTO_SRC}/arch/${MACHINE_CPU}