aboutsummaryrefslogtreecommitdiff
path: root/config/plugins.m4
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-19 21:59:56 +0930
committerAlan Modra <amodra@gmail.com>2014-08-19 21:59:56 +0930
commit2974be626b5e40033b9a259a072b2fe123469126 (patch)
tree19b66509831df8a875ed0ccbc466faead3a70fb3 /config/plugins.m4
parent180eb0634cd876d759f3cbd5bdce24d363f9f2f1 (diff)
downloadgdb-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 'config/plugins.m4')
-rw-r--r--config/plugins.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/config/plugins.m4 b/config/plugins.m4
index f65fdcb..513c690 100644
--- a/config/plugins.m4
+++ b/config/plugins.m4
@@ -15,4 +15,7 @@ AC_DEFUN([AC_PLUGINS],
esac],
[plugins=$maybe_plugins]
)
+ if test "$plugins" = "yes"; then
+ AC_SEARCH_LIBS([dlopen], [dl])
+ fi
])