aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-11-05 01:50:18 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-11-05 01:50:18 +0000
commit075ff26d5b7bc2d47ea6984a7a3efde8c1746427 (patch)
treebc342ae5e7d3b7581630d9a031081039ebbca894 /gdb/configure
parent14ad321702406e4ae091107aa067e3e0b34bf2a8 (diff)
downloadgdb-075ff26d5b7bc2d47ea6984a7a3efde8c1746427.zip
gdb-075ff26d5b7bc2d47ea6984a7a3efde8c1746427.tar.gz
gdb-075ff26d5b7bc2d47ea6984a7a3efde8c1746427.tar.bz2
gdb/
Fix configure --enable-plugins --without-python. * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New. * configure: Regenerate.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/configure b/gdb/configure
index dd3d04c..6d920c6 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -14937,6 +14937,10 @@ OLD_LIBS=$LIBS
CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
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"
+fi
LIBS="-lbfd -liberty $intl $LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
$as_echo_n "checking for ELF support in BFD... " >&6; }
@@ -14972,6 +14976,10 @@ if test $gdb_cv_var_elf = yes; then
$as_echo "#define HAVE_ELF 1" >>confdefs.h
+ # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
+ if test "$plugins" = "yes"; then
+ OLD_LIBS="-ldl $OLD_LIBS"
+ fi
fi
CFLAGS=$OLD_CFLAGS
LDFLAGS=$OLD_LDFLAGS