summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>2007-04-30 19:14:08 +0000
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>2007-04-30 19:14:08 +0000
commit5fa05099567bbe42aae87a9bef8fd630b3666a4d (patch)
treea385a92453a60d2c36d6f13d1177d153afb71a3f
parentf0ec832a78549a85cf4e47d884036c1178f749d3 (diff)
[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.
-rw-r--r--ChangeLog5
-rwxr-xr-xconfigure.ac2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 810015de..ab4e1cdb 100644
--- a/ChangeLog
+++ b/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
diff --git a/configure.ac b/configure.ac
index 5421c766..b24ab916 100755
--- a/configure.ac
+++ b/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"