aboutsummaryrefslogtreecommitdiff
path: root/gdb/acinclude.m4
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-05-17 16:24:21 +0000
committerH.J. Lu <hjl.tools@gmail.com>2013-05-17 16:24:21 +0000
commita48b32c06849c3e91e92cb5261e135a55cd584c4 (patch)
treeb77cf1866cca3f37c2f5fd4c49d541d7b26a9f90 /gdb/acinclude.m4
parent4934fdafeae14d61c01107ecaee2f7fac6ff12cb (diff)
downloadgdb-a48b32c06849c3e91e92cb5261e135a55cd584c4.zip
gdb-a48b32c06849c3e91e92cb5261e135a55cd584c4.tar.gz
gdb-a48b32c06849c3e91e92cb5261e135a55cd584c4.tar.bz2
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/acinclude.m4')
-rw-r--r--gdb/acinclude.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4
index 25caddd..df7d8c0 100644
--- a/gdb/acinclude.m4
+++ b/gdb/acinclude.m4
@@ -455,7 +455,7 @@ AC_DEFUN([GDB_AC_CHECK_BFD], [
intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
# -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
if test "$plugins" = "yes"; then
- LIBS="-ldl $LIBS"
+ AC_SEARCH_LIBS(dlopen, dl)
fi
LIBS="-lbfd -liberty $intl $LIBS"
AC_CACHE_CHECK([$1], [$2],