• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision1b4f615e4087a3ae9feba5912312cdcabc25e6a5 (tree)
Time2016-05-03 18:30:51
AuthorPedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

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.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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+
17 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28
39 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
--- a/gdb/configure
+++ b/gdb/configure
@@ -13709,12 +13709,14 @@ rm -f core conftest.err conftest.$ac_objext \
1370913709 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
1371013710 old_LIBS="$LIBS"
1371113711 LIBS="$LIBS $PYTHON_LIBS"
13712+ old_CPPFLAGS="$CPPFLAGS"
13713+ CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
1371213714 if test "$cross_compiling" = yes; then :
1371313715 true
1371413716 else
1371513717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1371613718 /* end confdefs.h. */
13717-#include "${have_libpython}/Python.h"
13719+#include "Python.h"
1371813720 int
1371913721 main ()
1372013722 {
@@ -13736,6 +13738,7 @@ fi
1373613738
1373713739 LIBS="$old_LIBS"
1373813740 CFLAGS="$old_CFLAGS"
13741+ CPPFLAGS="$old_CPPFLAGS"
1373913742 fi
1374013743 LDFLAGS="$old_LDFLAGS"
1374113744 fi
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1722,9 +1722,11 @@ if test "${gdb_native}" = yes; then
17221722 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
17231723 old_LIBS="$LIBS"
17241724 LIBS="$LIBS $PYTHON_LIBS"
1725+ old_CPPFLAGS="$CPPFLAGS"
1726+ CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17251727 AC_RUN_IFELSE(
17261728 AC_LANG_PROGRAM(
1727- [#include "]${have_libpython}[/Python.h"],
1729+ [#include "Python.h"],
17281730 [int err;
17291731 Py_Initialize ();
17301732 err = PyRun_SimpleString ("import itertools\n");
@@ -1733,6 +1735,7 @@ if test "${gdb_native}" = yes; then
17331735 [dynamic_list=true], [], [true])
17341736 LIBS="$old_LIBS"
17351737 CFLAGS="$old_CFLAGS"
1738+ CPPFLAGS="$old_CPPFLAGS"
17361739 fi
17371740 LDFLAGS="$old_LDFLAGS"
17381741 fi