diff options
author | Alan Modra <amodra@gmail.com> | 2014-08-19 21:59:56 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-08-19 21:59:56 +0930 |
commit | 2974be626b5e40033b9a259a072b2fe123469126 (patch) | |
tree | 19b66509831df8a875ed0ccbc466faead3a70fb3 /gdb/acinclude.m4 | |
parent | 180eb0634cd876d759f3cbd5bdce24d363f9f2f1 (diff) | |
download | gdb-2974be626b5e40033b9a259a072b2fe123469126.zip gdb-2974be626b5e40033b9a259a072b2fe123469126.tar.gz gdb-2974be626b5e40033b9a259a072b2fe123469126.tar.bz2 |
Fix --diable-shared --enable-plugins build breakage
Directories that don't use libtool need to add -ldl (on most *nix
hosts) to provide dlopen for libbfd.
config/
* plugins.m4 (AC_PLUGINS): If plugins are enabled, add -ldl to
LIBS via AC_SEARCH_LIBS.
gdb/
* acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
* config.in: Regenerate.
sim/ppc/
* configure.ac: Invoke AC_PLUGINS.
* config.in: Regenerate.
and regen lots of configure files.
Diffstat (limited to 'gdb/acinclude.m4')
-rw-r--r-- | gdb/acinclude.m4 | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4 index a3fb9e2..2b46f73 100644 --- a/gdb/acinclude.m4 +++ b/gdb/acinclude.m4 @@ -458,10 +458,6 @@ AC_DEFUN([GDB_AC_CHECK_BFD], [ CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS" LDFLAGS="-L../bfd -L../libiberty $LDFLAGS" intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` - # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>. - if test "$plugins" = "yes"; then - AC_SEARCH_LIBS(dlopen, dl) - fi LIBS="-lbfd -liberty $intl $LIBS" AC_CACHE_CHECK([$1], [$2], [AC_TRY_LINK( |