aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-03-11 18:49:37 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-03-11 18:49:37 +0000
commit8c1fb15545253e055a6098b8fdf5fd3fbece95fc (patch)
treecf6f3605404c9631c09c6472a5dff426c1cde187 /gdb/configure.ac
parentcc81e1c673ae438d57d5287ec64e2fd6e875377a (diff)
downloadgdb-8c1fb15545253e055a6098b8fdf5fd3fbece95fc.zip
gdb-8c1fb15545253e055a6098b8fdf5fd3fbece95fc.tar.gz
gdb-8c1fb15545253e055a6098b8fdf5fd3fbece95fc.tar.bz2
gdb/
* configure: Regenerate. * configure.ac (check dynamic export flag): Link python test with $PYTHON_LIBS.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index e501766..c17f587 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1687,6 +1687,8 @@ if test "${gdb_native}" = yes; then
# Problem does not happen for the recommended libpythonX.Y.so linkage.
old_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $PYTHON_CFLAGS"
+ old_LIBS="$LIBS"
+ LIBS="$LIBS $PYTHON_LIBS"
AC_RUN_IFELSE(
AC_LANG_PROGRAM(
[#include "]${have_libpython}[/Python.h"],
@@ -1696,6 +1698,7 @@ if test "${gdb_native}" = yes; then
Py_Finalize ();
return err == 0 ? 0 : 1;]),
[dynamic_list=true], [], [true])
+ LIBS="$old_LIBS"
CFLAGS="$old_CFLAGS"
fi
LDFLAGS="$old_LDFLAGS"