diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-10-15 17:17:54 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-10-15 17:17:54 +0000 |
commit | c83393b9a83c1f80b062cc5b4362c8b7da7f01ce (patch) | |
tree | 2650b50b581993775d16ef47d9a2d9852903ab16 /gdb/configure.ac | |
parent | 801e41852339ac13d7d302c5e58de5d7f55d640b (diff) | |
download | gdb-c83393b9a83c1f80b062cc5b4362c8b7da7f01ce.zip gdb-c83393b9a83c1f80b062cc5b4362c8b7da7f01ce.tar.gz gdb-c83393b9a83c1f80b062cc5b4362c8b7da7f01ce.tar.bz2 |
Build with -DMS_WIN64 on amd64-windows if Python enabled...
... and building with GCC.
gdb/ChangeLog:
* configure.ac: Build with -DMS_WIN64 if building with Python
enabled using GCC on amd64-windows.
* configure: Regenerate.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index c0fd0e1..fc181fd 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -989,11 +989,25 @@ if test "${have_libpython}" != no; then # unilaterally defined, and that in turn causes _SGIAPI to evaluate # to false. So, we work around this issue by defining siginfo ourself # though the command-line. + # + # On x64 Windows, Python's include headers, and pyconfig.h in + # particular, rely on MS_WIN64 macro to detect that it's a 64bit + # version of Windows. Unfortunately, MS_WIN64 is only defined if + # _MSC_VER, a Microsoft-specific macro, is defined. So, when + # building on x64 Windows with GCC, we define MS_WIN64 ourselves. + # The issue was reported to the Python community, but still isn't + # solved as of 2012-10-02 (http://bugs.python.org/issue4709). + case "$gdb_host" in irix*) if test "${GCC}" = yes; then CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo" fi ;; + mingw64) + if test "${GCC}" = yes; then + CPPFLAGS="$CPPFLAGS -DMS_WIN64" + fi + ;; esac # Note that "python -m threading" cannot be used to check for |