Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Linux does not libdl
Baptiste Daroussin committed 7 years ago
commit 9eba2d9333fd648c494391ba3ac6cdc3e0ed9b6d
parent c20d2f7
2 files changed +12 -0
modified auto.def
@@ -142,6 +142,14 @@ cc-with { -libs { -lutil }} {
	}
}

+
if {![cc-check-functions dlclose]} {
+
	cc-with { -libs { -ldl }} {
+
		if {[cc-check-functions dlclose]} {
+
			define-feature LIBDL
+
		}
+
	}
+
}
+

cc-check-includes link.h machine/endian.h osreldate.h readpassphrase.h \
	sys/procctl.h sys/statfs.h sys/statvfs.h libutil.h

modified libpkg/Makefile.autosetup
@@ -89,6 +89,10 @@ STATIC_LIBS= @REPOS_STATIC_LIBS@ \
LOCAL_LDFLAGS+=	-lutil
@endif

+
@if HAVE_LIBDL
+
LOCAL_LDFLAS+= -ldl
+
@endif
+

@if libabidir == libmachista
LOCAL_CFLAGS+= -I$(top_srcdir)/external/libmachista
STATIC_LIBS+=	$(top_builddir)/external/libmachista/libmachista.a