summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/mk/bsd.sys.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 760155b..be5b9bf 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -8,17 +8,19 @@
# for GCC: http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_3.html#IDX143
+.if !defined(PROG_CXX)
CSTD ?= c99
-.if ${CSTD} == "k&r"
+. if ${CSTD} == "k&r"
CFLAGS += -traditional
-.elif ${CSTD} == "c89" || ${CSTD} == "c90"
+. elif ${CSTD} == "c89" || ${CSTD} == "c90"
CFLAGS += -std=iso9899:1990
-.elif ${CSTD} == "c94" || ${CSTD} == "c95"
+. elif ${CSTD} == "c94" || ${CSTD} == "c95"
CFLAGS += -std=iso9899:199409
-.elif ${CSTD} == "c99"
+. elif ${CSTD} == "c99"
CFLAGS += -std=iso9899:1999
-.else
+. else
CFLAGS += -std=${CSTD}
+. endif
.endif
.if !defined(NO_WARNS)
OpenPOWER on IntegriCloud