summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2021-12-16 15:32:10 -0600
committerJoel Sherrill <joel@rtems.org>2021-12-16 15:32:10 -0600
commite6a4bc55959d884e9889a76d360b6bfc3de138a1 (patch)
tree9a07b0cd94147b260fa7839e8e61eec9085db7cc
parentrtems-bin2c.c: Add _GNU_SOURCE to see strnlen() and strdup() (diff)
downloadrtems-tools-e6a4bc55959d884e9889a76d360b6bfc3de138a1.tar.bz2
misc/wscript trace/wscript: Add -std=c99 to CFLAGS
CentOS 7 has gcc 4.8.5 which defaults to C90.
-rw-r--r--misc/wscript1
-rw-r--r--trace/wscript1
2 files changed, 2 insertions, 0 deletions
diff --git a/misc/wscript b/misc/wscript
index b3faf7b..f1e64ab 100644
--- a/misc/wscript
+++ b/misc/wscript
@@ -52,6 +52,7 @@ def build(bld):
conf['warningflags'] = ['-Wall', '-Wextra', '-pedantic']
conf['optflags'] = bld.env.C_OPTS
conf['cflags'] = ['-pipe', '-g'] + conf['optflags']
+ conf['cflags'] = ['-std=c99'] + conf['cflags']
conf['linkflags'] = ['-g']
#
diff --git a/trace/wscript b/trace/wscript
index 53a1ab4..63ddd50 100644
--- a/trace/wscript
+++ b/trace/wscript
@@ -65,6 +65,7 @@ def build(bld):
if bld.env.HAVE_STD_CXX14:
cxxstd = '-std=c++14'
conf['cxxflags'] = [cxxstd] + conf['cflags']
+ conf['cflags'] = ['-std=c99'] + conf['cflags']
conf['linkflags'] = ['-g']
conf['lib'] = []
if bld.env.LIB_WS2_32: