summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-06-01 21:33:05 +0000
committerobrien <obrien@FreeBSD.org>2003-06-01 21:33:05 +0000
commit00cddc9c66935202a88af566ce727766d5abbb46 (patch)
treee0603142cc7630420a66d18caf19f6d04b054353 /share/mk
parent4b6365a2b6b07ffc1f8030ff8866a8bb47de7d2d (diff)
downloadFreeBSD-src-00cddc9c66935202a88af566ce727766d5abbb46.zip
FreeBSD-src-00cddc9c66935202a88af566ce727766d5abbb46.tar.gz
Do not set a C standard for the C++ compiler.
Diffstat (limited to 'share/mk')
-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