summaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-05-17 16:24:20 +0000
committerH.J. Lu <hjl.tools@gmail.com>2013-05-17 16:24:20 +0000
commit5a4337e6ec84ebc21bdf15e9d7076576e4f8e862 (patch)
treebdb8d2dac17137281550e79dbba81f8d55917117 /gdb/configure.ac
parent6f78e1e9b3d53d75b3f8c9fe2fb0c90774fc3641 (diff)
downloadgdb-5a4337e6ec84ebc21bdf15e9d7076576e4f8e862.tar.gz
Replace hardcoded -ldl with check for availability
2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com> * acinclude.m4: Add check for dlopen in libdl. * configure.ac: Ditto. * configure: Regenerate.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index c3f79ec1b40..5fcec522d37 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -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