summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/cc/Makefile')
-rw-r--r--gnu/usr.bin/cc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/Makefile b/gnu/usr.bin/cc/Makefile
index efb548a..bf6d20c 100644
--- a/gnu/usr.bin/cc/Makefile
+++ b/gnu/usr.bin/cc/Makefile
@@ -12,7 +12,12 @@ SUBDIR+= cpp
.endif
.if ${MK_CXX} != "no"
-SUBDIR+= cc1plus c++ c++filt
+.if ${MK_GNUCXX} != "no"
+SUBDIR+= cc1plus c++
+.endif
+# This should be moved into the above block once c++filt from elftoolchain or
+# similar is provided.
+SUBDIR+= c++filt
.endif
.if ${MK_GCOV} != "no"
OpenPOWER on IntegriCloud