summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2017-07-24 19:23:58 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2017-07-24 19:23:58 +0000
commite07076ed6faad9fa0d8226852e76740cbaa3e856 (patch)
treedffb075e179982c8569a6c7860573c3cb3b40a0b /gnu/usr.bin/cc
parent84c01f44b24529a797ad127c622911ebbf70c735 (diff)
build cpp on gcc4 architectures only, as clang ships with its own
ok naddy@
Diffstat (limited to 'gnu/usr.bin/cc')
-rw-r--r--gnu/usr.bin/cc/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/Makefile b/gnu/usr.bin/cc/Makefile
index 67e41d9f378..170ad2f1222 100644
--- a/gnu/usr.bin/cc/Makefile
+++ b/gnu/usr.bin/cc/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/usr.bin/cc/Makefile,v 1.41.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile,v 1.2 2013/05/18 18:18:21 miod Exp $
+# $OpenBSD: Makefile,v 1.3 2017/07/24 19:23:57 robert Exp $
.include <bsd.own.mk>
@@ -8,7 +8,10 @@
SUBDIR= cc_tools libcpp libdecnumber cc_int cc cc1 include doc
+.if ${COMPILER_VERSION:L} == "gcc4"
SUBDIR+= cpp
+.endif
+
SUBDIR+= cc1plus c++ c++filt
SUBDIR+= cc1obj
SUBDIR+= gcov