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@