aboutsummaryrefslogtreecommitdiff
path: root/config
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
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')
-rw-r--r--config/ChangeLog5
-rw-r--r--config/plugins.m43
2 files changed, 8 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index b11ca26..4e74bea 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-19 Alan Modra <amodra@gmail.com>
+
+ * plugins.m4 (AC_PLUGINS): If plugins are enabled, add -ldl to
+ LIBS via AC_SEARCH_LIBS.
+
2014-08-14 Alan Modra <amodra@gmail.com>
* plugins.m4: Test for dlfcn.h or windows.h here to set default
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
])