gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 11 Mar 2013 18:49:37 +0000 (18:49 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 11 Mar 2013 18:49:37 +0000 (18:49 +0000)
* configure: Regenerate.
* configure.ac (check dynamic export flag): Link python test with
$PYTHON_LIBS.

gdb/ChangeLog
gdb/configure
gdb/configure.ac

index 9084fa05a4879fd675f70e2811bdb8a6c1bd48c4..fcb47da0ec6fff9665dfc58b468bc9b6a1ace25a 100644 (file)
@@ -1,3 +1,10 @@
+2013-03-11  Pedro Alves  <palves@redhat.com>
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * configure: Regenerate.
+       * configure.ac (check dynamic export flag): Link python test with
+       $PYTHON_LIBS.
+
 2013-03-11  Doug Evans  <dje@google.com>
            Keith Seitz  <keiths@redhat.com>
 
index c54709cc085e57747e7840a15ea1fe17af35007b..0dd67f07470bbdba12ebb3163b36e0e6a90bbe3c 100755 (executable)
@@ -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"
index e501766034f210db535a876f4ad51dd8304ef00d..c17f5872addb35465771c332d7fdfbb93c7bce20 100644 (file)
@@ -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"