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.
This commit is contained in:
H.J. Lu
2013-05-17 16:24:21 +00:00
parent 4934fdafea
commit a48b32c068
4 changed files with 232 additions and 6 deletions

View 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