From 37886813e71629363342a0503a83e39c8e840eb0 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 1 Jan 2020 11:02:37 +0000 Subject: autotools: avoid -ldl if not required or not supported ld: error: unable to find library -ldl --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2fce554..8484e43 100644 --- a/configure.ac +++ b/configure.ac @@ -209,6 +209,11 @@ if test "$ac_cv_have_gnuc_visibility_attribute" = "yes"; then [Defined to 1 if GCC visibility attribute is supported]) fi +# Check for -ldl (often not required) +AC_SEARCH_LIBS([dlopen], [dl], [], [ + AC_MSG_ERROR([unable to find the dlopen() function]) +]) + # Check for -fstack-protector ssp_cc=yes if test "X$CC-cc" != "X"; then -- cgit v1.2.1