aboutsummaryrefslogtreecommitdiff
path: root/mk/cc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/cc.mk')
-rw-r--r--mk/cc.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/cc.mk b/mk/cc.mk
index 74a816e9..06556f0e 100644
--- a/mk/cc.mk
+++ b/mk/cc.mk
@@ -5,9 +5,9 @@ CFLAGS?= -O2
# Default to using the C99 standard
CSTD?= c99
-_CSTD_SH= if test -n "${CSTD}"; then echo "-std=${CSTD}"; else echo ""; fi
-_CSTD:= $(shell ${_CSTD_SH})
-CFLAGS+= ${_CSTD}
+ifneq (${CSTD},)
+CFLAGS+= -std=${CSTD}
+endif
# Try and use some good cc flags if we're building from git
# We don't use -pedantic as it will warn about our perfectly valid