DragonFly BSD (and FreeBSD) have the dlopen/dlfcn/... routines located in
libc. However many applications and their configure scripts look for these
routines in libdl. This adds a stub libdl with no subroutines, so that the
configure scripts pass. The dl* routines are automatically available via
libc.
libdevattr \
libdevinfo \
libdevstat \
+ libdl \
libdm \
libedit \
libevtr \
--- /dev/null
+LIB=dl
+SHLIB_MAJOR=0
+WARNS?=2
+
+SRCS=dl_stub.c
+
+.include <bsd.lib.mk>
--- /dev/null
+/*
+ * DragonFly BSD provides the dynamic loader facilities (dlopen/dlfcn/...) in
+ * libc itself. However, a number of applications expect these routines to
+ * be provided by libdl. We provide a stub libdl with no subroutines to satisfy
+ * these applications.
+ */
+