diff options
author | Pedro Alves <palves@redhat.com> | 2016-05-03 10:30:51 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-05-03 10:30:51 +0100 |
commit | 1b4f615e4087a3ae9feba5912312cdcabc25e6a5 (patch) | |
tree | 165fdd2af2cfceb36c9871edb5265aa0835e6008 /gdb/configure.ac | |
parent | b631e59ba05af7c888838d3e2d6d408bfe60b57f (diff) | |
download | gdb-1b4f615e4087a3ae9feba5912312cdcabc25e6a5.zip gdb-1b4f615e4087a3ae9feba5912312cdcabc25e6a5.tar.gz gdb-1b4f615e4087a3ae9feba5912312cdcabc25e6a5.tar.bz2 |
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:
configure:13741: checking for the dynamic export flag
configure:13796: gcc -o conftest -g3 -O0 -fno-strict-aliasing -DNDEBUG -fwrapv -Wl,--dynamic-list=/home/pedro/gdb/mygit/src/gdb/proc-service.list conftest.c -ldl -lncurses -lm -ldl -lpthread -ldl -lutil -lm -lpython3.4m -Xlinker -export-dynamic >&5
conftest.c:182:30: fatal error: python3.4/Python.h: No such file or directory
compilation terminated.
configure:13796: $? = 1
The correct -I path is in PYTHON_CPPFLAGS:
PYTHON_CPPFLAGS='-I/usr/include/python3.4m -I/usr/include/python3.4m'
(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.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 3aa132a..d7b2e8a 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1722,9 +1722,11 @@ if test "${gdb_native}" = yes; then CFLAGS="$CFLAGS $PYTHON_CFLAGS" old_LIBS="$LIBS" LIBS="$LIBS $PYTHON_LIBS" + old_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" AC_RUN_IFELSE( AC_LANG_PROGRAM( - [#include "]${have_libpython}[/Python.h"], + [#include "Python.h"], [int err; Py_Initialize (); err = PyRun_SimpleString ("import itertools\n"); @@ -1733,6 +1735,7 @@ if test "${gdb_native}" = yes; then [dynamic_list=true], [], [true]) LIBS="$old_LIBS" CFLAGS="$old_CFLAGS" + CPPFLAGS="$old_CPPFLAGS" fi LDFLAGS="$old_LDFLAGS" fi |