Replace hardcoded -ldl with check for availability
[deliverable/binutils-gdb.git] / gdb / configure.ac
index c3f79ec1b4018e528816074a148549485ac0ab73..5fcec522d37f9fa66de0dabb87fc72fcc20676f2 100644 (file)
@@ -2036,7 +2036,7 @@ if test $gdb_cv_var_elf = yes; then
            [Define if ELF support should be included.])
   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
   if test "$plugins" = "yes"; then
-    LIBS="-ldl $LIBS"
+    AC_SEARCH_LIBS(dlopen, dl)
   fi
 fi
 
This page took 0.023769 seconds and 4 git commands to generate.