]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-python.patch
- rel 6; python 2.7 fixes; rebuild configure.ac, too
[packages/gdb.git] / gdb-python.patch
1 --- gdb-7.0/gdb/configure.ac~   2010-07-08 14:54:43.770583270 +0200
2 +++ gdb-7.0/gdb/configure.ac    2010-07-08 14:56:17.539947910 +0200
3 @@ -881,6 +881,12 @@
4    LIBS="$LIBS ${python_libs}"
5    have_libpython=no
6    if test "${have_libpython}" = no; then
7 +    AC_TRY_LIBPYTHON(python2.7, have_libpython)
8 +    if test "${HAVE_LIBPYTHON2_7}" = yes; then
9 +      AC_DEFINE(HAVE_LIBPYTHON2_7, 1, [Define if Python 2.7 is being used.])
10 +    fi
11 +  fi
12 +  if test "${have_libpython}" = no; then
13      AC_TRY_LIBPYTHON(python2.6, have_libpython)
14      if test "${HAVE_LIBPYTHON2_6}" = yes; then
15        AC_DEFINE(HAVE_LIBPYTHON2_6, 1, [Define if Python 2.6 is being used.])
16 --- gdb-7.0/gdb/python/python-internal.h~       2010-07-08 14:54:43.136858331 +0200
17 +++ gdb-7.0/gdb/python/python-internal.h        2010-07-08 14:56:56.739736159 +0200
18 @@ -45,6 +45,9 @@
19  #elif HAVE_LIBPYTHON2_6
20  #include "python2.6/Python.h"
21  #include "python2.6/frameobject.h"
22 +#elif HAVE_LIBPYTHON2_7
23 +#include "python2.7/Python.h"
24 +#include "python2.7/frameobject.h"
25  #else
26  #error "Unable to find usable Python.h"
27  #endif
This page took 0.025212 seconds and 3 git commands to generate.