GNU Binutils with patches for OS216
Revision | 1b4f615e4087a3ae9feba5912312cdcabc25e6a5 (tree) |
---|---|
Time | 2016-05-03 18:30:51 |
Author | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
Fix "-Wl,--dynamic-list" gdb/configure test
The -Wl,--dynamic-list test is currently broken on Fedora 23, when you
configure with --with-python=python3.4. We see:
The correct -I path is in PYTHON_CPPFLAGS:
(Other Python-related tests in the file are already doing this.)
gdb/ChangeLog:
2016-05-03 Pedro Alves <palves@redhat.com>
* configure.ac (checking for the dynamic export flag): Add
$PYTHON_CPPFLAGS to CPPFLAGS.
* configure: Regenerate.
@@ -1,3 +1,9 @@ | ||
1 | +2016-05-03 Pedro Alves <palves@redhat.com> | |
2 | + | |
3 | + * configure.ac (checking for the dynamic export flag): Add | |
4 | + $PYTHON_CPPFLAGS to CPPFLAGS. | |
5 | + * configure: Regenerate. | |
6 | + | |
1 | 7 | 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com> |
2 | 8 | |
3 | 9 | * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses |
@@ -13709,12 +13709,14 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
13709 | 13709 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
13710 | 13710 | old_LIBS="$LIBS" |
13711 | 13711 | LIBS="$LIBS $PYTHON_LIBS" |
13712 | + old_CPPFLAGS="$CPPFLAGS" | |
13713 | + CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" | |
13712 | 13714 | if test "$cross_compiling" = yes; then : |
13713 | 13715 | true |
13714 | 13716 | else |
13715 | 13717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13716 | 13718 | /* end confdefs.h. */ |
13717 | -#include "${have_libpython}/Python.h" | |
13719 | +#include "Python.h" | |
13718 | 13720 | int |
13719 | 13721 | main () |
13720 | 13722 | { |
@@ -13736,6 +13738,7 @@ fi | ||
13736 | 13738 | |
13737 | 13739 | LIBS="$old_LIBS" |
13738 | 13740 | CFLAGS="$old_CFLAGS" |
13741 | + CPPFLAGS="$old_CPPFLAGS" | |
13739 | 13742 | fi |
13740 | 13743 | LDFLAGS="$old_LDFLAGS" |
13741 | 13744 | fi |
@@ -1722,9 +1722,11 @@ if test "${gdb_native}" = yes; then | ||
1722 | 1722 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
1723 | 1723 | old_LIBS="$LIBS" |
1724 | 1724 | LIBS="$LIBS $PYTHON_LIBS" |
1725 | + old_CPPFLAGS="$CPPFLAGS" | |
1726 | + CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" | |
1725 | 1727 | AC_RUN_IFELSE( |
1726 | 1728 | AC_LANG_PROGRAM( |
1727 | - [#include "]${have_libpython}[/Python.h"], | |
1729 | + [#include "Python.h"], | |
1728 | 1730 | [int err; |
1729 | 1731 | Py_Initialize (); |
1730 | 1732 | err = PyRun_SimpleString ("import itertools\n"); |
@@ -1733,6 +1735,7 @@ if test "${gdb_native}" = yes; then | ||
1733 | 1735 | [dynamic_list=true], [], [true]) |
1734 | 1736 | LIBS="$old_LIBS" |
1735 | 1737 | CFLAGS="$old_CFLAGS" |
1738 | + CPPFLAGS="$old_CPPFLAGS" | |
1736 | 1739 | fi |
1737 | 1740 | LDFLAGS="$old_LDFLAGS" |
1738 | 1741 | fi |