summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-07-10 21:11:48 +0000
committerimp <imp@FreeBSD.org>2014-07-10 21:11:48 +0000
commitd284902e1150565feea2878bd56b6a4080a7aad9 (patch)
tree46090c7fe45a36451e68f46dba2c391689aa3ec5 /gnu
parent99b5ccae7ca41a5f7e0999be7e2020ead11b5c37 (diff)
downloadFreeBSD-src-d284902e1150565feea2878bd56b6a4080a7aad9.zip
FreeBSD-src-d284902e1150565feea2878bd56b6a4080a7aad9.tar.gz
Make MK_GNUCXX mean "build the libstdc++ and libsupc++ libraries" and
nothing more. Force it to be "no" when MK_CXX is "no" to simplify usage. It no longer also means "build g++" since we no longer have a platform where that's interesting now that pc98 no longer needs clang and gcc, but not g++. pc98 now just uses clang after boot2 changes.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/Makefile2
-rw-r--r--gnu/usr.bin/cc/Makefile7
2 files changed, 2 insertions, 7 deletions
diff --git a/gnu/lib/Makefile b/gnu/lib/Makefile
index 2651eef..373c280 100644
--- a/gnu/lib/Makefile
+++ b/gnu/lib/Makefile
@@ -14,7 +14,7 @@ SUBDIR+= tests
# libsupc++ uses libstdc++ headers, although 'make includes' should
# have taken care of that already.
-.if ${MK_GNUCXX} != "no" && ${MK_CXX} != "no"
+.if ${MK_GNUCXX} != "no"
SUBDIR+= libstdc++ libsupc++
.endif
diff --git a/gnu/usr.bin/cc/Makefile b/gnu/usr.bin/cc/Makefile
index 313aaf2..8191ea4 100644
--- a/gnu/usr.bin/cc/Makefile
+++ b/gnu/usr.bin/cc/Makefile
@@ -12,12 +12,7 @@ SUBDIR+= cpp
.endif
.if ${MK_CXX} != "no"
-.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
+SUBDIR+= cc1plus c++ c++filt
.endif
.if ${MK_GCOV} != "no"
OpenPOWER on IntegriCloud