Skip to content

Commit 7f9eb6e

Browse files
committed
Issue 28017: Use -std=gnu99 to get C99 with GNU extensions for bluetooth.h on big endian.
1 parent 8118824 commit 7f9eb6e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

aclocal.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1515
dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
16-
dnl serial 11 (pkg-config-0.29.1)
16+
dnl serial 11 (pkg-config-0.29)
1717
dnl
1818
dnl Copyright © 2004 Scott James Remnant <[email protected]>.
1919
dnl Copyright © 2012-2015 Dan Nicholson <[email protected]>
@@ -55,7 +55,7 @@ dnl
5555
dnl See the "Since" comment for each macro you use to see what version
5656
dnl of the macros you require.
5757
m4_defun([PKG_PREREQ],
58-
[m4_define([PKG_MACROS_VERSION], [0.29.1])
58+
[m4_define([PKG_MACROS_VERSION], [0.29])
5959
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
6060
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
6161
])dnl PKG_PREREQ

configure

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6858,7 +6858,9 @@ UNIVERSAL_ARCH_FLAGS=
68586858
# tweak BASECFLAGS based on compiler and platform
68596859
case $GCC in
68606860
yes)
6861-
CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
6861+
# GNU dialect of C99, enables GNU extensions like __attribute__. GNU99
6862+
# is required by bluetooth.h on big endian machines.
6863+
CFLAGS_NODIST="$CFLAGS_NODIST -std=gnu99"
68626864

68636865
# Python doesn't violate C99 aliasing rules, but older versions of
68646866
# GCC produce warnings for legal Python code. Enable

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,9 @@ AC_SUBST(UNIVERSAL_ARCH_FLAGS)
15231523
# tweak BASECFLAGS based on compiler and platform
15241524
case $GCC in
15251525
yes)
1526-
CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
1526+
# GNU dialect of C99, enables GNU extensions like __attribute__. GNU99
1527+
# is required by bluetooth.h on big endian machines.
1528+
CFLAGS_NODIST="$CFLAGS_NODIST -std=gnu99"
15271529

15281530
# Python doesn't violate C99 aliasing rules, but older versions of
15291531
# GCC produce warnings for legal Python code. Enable

0 commit comments

Comments
 (0)