Browse Source

[build] Improve portability by invoking gcc with -std=gnu99 instead of -std=c99

2007-04-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

	* configure.ac: Change gcc CFLAGS from '-std=c99' to '-std=gnu99'
	  to improve portability.
Andrew J. Schorr 15 years ago
parent
commit
5fa0509956
2 changed files with 6 additions and 1 deletions
  1. 5 0
      ChangeLog
  2. 1 1
      configure.ac

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2007-04-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+	* configure.ac: Change gcc CFLAGS from '-std=c99' to '-std=gnu99'
+	  to improve portability.
+
 2007-04-29 Paul Jakma <paul.jakma@sun.com>
 
 	* configure.ac: Bump to 0.99.7

+ 1 - 1
configure.ac

@@ -119,7 +119,7 @@ if test "x${cflags_specified}" = "x" ; then
         AC_MSG_RESULT([Intel default])
         ;;
     "GCC")
-  	CFLAGS="-Os -fno-omit-frame-pointer -g -std=c99 -Wall"
+  	CFLAGS="-Os -fno-omit-frame-pointer -g -std=gnu99 -Wall"
   	CFLAGS="${CFLAGS} -Wsign-compare -Wpointer-arith"
   	CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
   	CFLAGS="${CFLAGS} -Wmissing-prototypes -Wmissing-declarations"