From: Waldemar Brodkorb Date: Tue, 5 Jan 2016 18:13:12 +0000 (+0100) Subject: dlopen is used by newer binutils, so check for it X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d7def2eac742970b75a64d5197b88a448eb54b5d;p=elf2flt.git dlopen is used by newer binutils, so check for it Add a check for dlopen to configure.ac Signed-off-by: Waldemar Brodkorb Signed-off-by: Greg Ungerer --- diff --git a/configure.ac b/configure.ac index 4e7df5a..eff8f68 100644 --- a/configure.ac +++ b/configure.ac @@ -192,6 +192,7 @@ dnl redirect some functions to the system symbols, but other local symbols dnl come from libiberty/libbfd. dnl int getopt(int, char * const [], const char *) __asm("_" "getopt" "$UNIX2003"); AC_CHECK_LIB(c, malloc, LIBS="-lc $LIBS") +AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl") dnl Checks for header files. AC_HEADER_STDC