aboutsummaryrefslogtreecommitdiff
path: root/lib/cpluff/patches/0008-configure-Handle-libdl-only-being-needed-on-Linux-fo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cpluff/patches/0008-configure-Handle-libdl-only-being-needed-on-Linux-fo.patch')
-rw-r--r--lib/cpluff/patches/0008-configure-Handle-libdl-only-being-needed-on-Linux-fo.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/cpluff/patches/0008-configure-Handle-libdl-only-being-needed-on-Linux-fo.patch b/lib/cpluff/patches/0008-configure-Handle-libdl-only-being-needed-on-Linux-fo.patch
new file mode 100644
index 0000000000..9baf70b6f2
--- /dev/null
+++ b/lib/cpluff/patches/0008-configure-Handle-libdl-only-being-needed-on-Linux-fo.patch
@@ -0,0 +1,27 @@
+From 40e6a7d6aa122b99b65ad0f034ee2d90214779a9 Mon Sep 17 00:00:00 2001
+From: "h.udo" <hudokkow@gmail.com>
+Date: Thu, 20 Oct 2016 15:05:58 +0100
+Subject: [PATCH 08/12] [configure] Handle libdl only being needed on Linux for
+ dlopen
+
+---
+ configure.ac | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 0700af9..c391dfb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -179,7 +179,8 @@ dlmechanism=none
+ if test "$with_dlopen" != no && test "$with_libltdl" != yes; then
+ AC_CHECK_HEADER([dlfcn.h],
+ AC_CHECK_LIB([dl], [dlopen],
+- [LIBS_DL="-ldl $LIBS_DL"; dlmechanism=dlopen]))
++ [LIBS_DL="-ldl $LIBS_DL"; dlmechanism=dlopen],
++ AC_CHECK_LIB([c], [dlopen], [dlmechanism=dlopen])))
+ fi
+ if test "$dlmechanism" = none && test "$with_libltdl" != no && test "$with_dlopen" != yes; then
+ AC_CHECK_HEADER([ltdl.h],
+--
+2.14.1
+