[Python-checkins] cpython: Issue 28017: Use -std=gnu99 to get C99 with GNU extensions for bluetooth.h on

christian.heimes python-checkins at python.org
Thu Sep 8 05:39:49 EDT 2016


https://hg.python.org/cpython/rev/b5b2bb56d303
changeset:   103301:b5b2bb56d303
user:        Christian Heimes <christian at python.org>
date:        Thu Sep 08 11:39:42 2016 +0200
summary:
  Issue 28017: Use -std=gnu99 to get C99 with GNU extensions for bluetooth.h on big endian.

files:
  aclocal.m4   |  4 ++--
  configure    |  4 +++-
  configure.ac |  4 +++-
  3 files changed, 8 insertions(+), 4 deletions(-)


diff --git a/aclocal.m4 b/aclocal.m4
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -13,7 +13,7 @@
 
 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
 dnl pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
-dnl serial 11 (pkg-config-0.29.1)
+dnl serial 11 (pkg-config-0.29)
 dnl
 dnl Copyright © 2004 Scott James Remnant <scott at netsplit.com>.
 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists at gmail.com>
@@ -55,7 +55,7 @@
 dnl See the "Since" comment for each macro you use to see what version
 dnl of the macros you require.
 m4_defun([PKG_PREREQ],
-[m4_define([PKG_MACROS_VERSION], [0.29.1])
+[m4_define([PKG_MACROS_VERSION], [0.29])
 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
     [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
 ])dnl PKG_PREREQ
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -6858,7 +6858,9 @@
 # tweak BASECFLAGS based on compiler and platform
 case $GCC in
 yes)
-    CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
+    # GNU dialect of C99, enables GNU extensions like __attribute__. GNU99
+    # is required by bluetooth.h on big endian machines.
+    CFLAGS_NODIST="$CFLAGS_NODIST -std=gnu99"
 
     # Python doesn't violate C99 aliasing rules, but older versions of
     # GCC produce warnings for legal Python code.  Enable
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1523,7 +1523,9 @@
 # tweak BASECFLAGS based on compiler and platform
 case $GCC in
 yes)
-    CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
+    # GNU dialect of C99, enables GNU extensions like __attribute__. GNU99
+    # is required by bluetooth.h on big endian machines.
+    CFLAGS_NODIST="$CFLAGS_NODIST -std=gnu99"
 
     # Python doesn't violate C99 aliasing rules, but older versions of
     # GCC produce warnings for legal Python code.  Enable

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list