From 8c1fb15545253e055a6098b8fdf5fd3fbece95fc Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 11 Mar 2013 18:49:37 +0000 Subject: [PATCH] gdb/ * configure: Regenerate. * configure.ac (check dynamic export flag): Link python test with $PYTHON_LIBS. --- gdb/ChangeLog | 7 +++++++ gdb/configure | 3 +++ gdb/configure.ac | 3 +++ 3 files changed, 13 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9084fa05a4..fcb47da0ec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2013-03-11 Pedro Alves + Jan Kratochvil + + * configure: Regenerate. + * configure.ac (check dynamic export flag): Link python test with + $PYTHON_LIBS. + 2013-03-11 Doug Evans Keith Seitz diff --git a/gdb/configure b/gdb/configure index c54709cc08..0dd67f0747 100755 --- a/gdb/configure +++ b/gdb/configure @@ -11888,6 +11888,8 @@ rm -f core conftest.err conftest.$ac_objext \ # 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" if test "$cross_compiling" = yes; then : true else @@ -11913,6 +11915,7 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi + LIBS="$old_LIBS" CFLAGS="$old_CFLAGS" fi LDFLAGS="$old_LDFLAGS" diff --git a/gdb/configure.ac b/gdb/configure.ac index e501766034..c17f5872ad 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" -- 2.34.1