libdl -- Stub libdl.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Sat, 31 Dec 2011 10:21:05 +0000 (05:21 -0500)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Sat, 31 Dec 2011 10:21:05 +0000 (05:21 -0500)
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.

lib/Makefile
lib/libdl/Makefile [new file with mode: 0644]
lib/libdl/dl_stub.c [new file with mode: 0644]

index 42c8b35..552775e 100644 (file)
@@ -46,6 +46,7 @@ SUBDIR=       ${SUBDIR_ORDERED} \
        libdevattr \
        libdevinfo \
        libdevstat \
+       libdl \
        libdm \
        libedit \
        libevtr \
diff --git a/lib/libdl/Makefile b/lib/libdl/Makefile
new file mode 100644 (file)
index 0000000..e437beb
--- /dev/null
@@ -0,0 +1,7 @@
+LIB=dl
+SHLIB_MAJOR=0
+WARNS?=2
+
+SRCS=dl_stub.c
+
+.include <bsd.lib.mk>
diff --git a/lib/libdl/dl_stub.c b/lib/libdl/dl_stub.c
new file mode 100644 (file)
index 0000000..bab863d
--- /dev/null
@@ -0,0 +1,7 @@
+/*
+ * 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.
+ */
+