]>
Commit | Line | Data |
---|---|---|
f412e1b4 PS |
1 | --- a/gdb/configure |
2 | +++ b/gdb/configure | |
3 | @@ -14631,6 +14631,10 @@ rm -f core conftest.err conftest.$ac_objext \ | |
4 | # Problem does not happen for the recommended libpythonX.Y.so linkage. | |
5 | old_CFLAGS="$CFLAGS" | |
6 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" | |
7 | + old_CPPFLAGS="$CPPFLAGS" | |
8 | + CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" | |
9 | + old_LIBS="$LIBS" | |
10 | + LIBS="$LIBS $PYTHON_LIBS" | |
11 | if test "$cross_compiling" = yes; then : | |
12 | true | |
13 | else | |
14 | @@ -14657,6 +14661,8 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15 | fi | |
16 | ||
17 | CFLAGS="$old_CFLAGS" | |
18 | + CPPFLAGS="$old_CPPFLAGS" | |
19 | + LIBS="$old_LIBS" | |
20 | fi | |
21 | LDFLAGS="$old_LDFLAGS" | |
22 | fi | |
23 | --- a/gdb/configure.ac | |
24 | +++ b/gdb/configure.ac | |
25 | @@ -1576,6 +1576,10 @@ if test "${gdb_native}" = yes; then | |
26 | # Problem does not happen for the recommended libpythonX.Y.so linkage. | |
27 | old_CFLAGS="$CFLAGS" | |
28 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" | |
29 | + old_CPPFLAGS="$CPPFLAGS" | |
30 | + CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" | |
31 | + old_LIBS="$LIBS" | |
32 | + LIBS="$LIBS $PYTHON_LIBS" | |
33 | AC_RUN_IFELSE( | |
34 | AC_LANG_PROGRAM( | |
35 | [#include "]${have_libpython}[/Python.h"], | |
36 | @@ -1586,6 +1590,8 @@ if test "${gdb_native}" = yes; then | |
37 | return err == 0 ? 0 : 1;]), | |
38 | [dynamic_list=true], [], [true]) | |
39 | CFLAGS="$old_CFLAGS" | |
40 | + CPPFLAGS="$old_CPPFLAGS" | |
41 | + LIBS="$old_LIBS" | |
42 | fi | |
43 | LDFLAGS="$old_LDFLAGS" | |
44 | fi |