From f6e91a7e86c288be5e91d58e2bdb110f3c1c89ea Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 30 Jan 2014 12:08:57 -0800 Subject: [PATCH] Declare a private dependency on libdl. The new linker requires that the consumers of a library link against the libraries that that library depends on, which is supported by Libs.private. Fixes #16 --- configure.ac | 3 +++ epoxy.pc.in | 1 + 2 files changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index fd390de..3037c76 100644 --- a/configure.ac +++ b/configure.ac @@ -106,6 +106,9 @@ fi AM_CONDITIONAL(HAS_ZNOW, test x$has_znow = xyes) +AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"]) +AC_SUBST([DLOPEN_LIBS]) + case $host_os in mingw*) # visibility flags aren't supported for windows DLLs, and the diff --git a/epoxy.pc.in b/epoxy.pc.in index 6d484d1..8c85a33 100644 --- a/epoxy.pc.in +++ b/epoxy.pc.in @@ -8,3 +8,4 @@ Description: epoxy GL dispatch Library Version: @PACKAGE_VERSION@ Cflags: -I${includedir} Libs: -L${libdir} -lepoxy +Libs.private: @DLOPEN_LIBS@