summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-02-29 22:58:51 +0000
committerdim <dim@FreeBSD.org>2012-02-29 22:58:51 +0000
commit2a09710001f8d4e44d609b777dbca5f6426072ed (patch)
tree2af64063549570e0a548bdc894aa9b6e2f75ee88 /usr.bin
parent5fb3a72857db9900e8bdadb8f7d81bdc41db250d (diff)
downloadFreeBSD-src-2a09710001f8d4e44d609b777dbca5f6426072ed.zip
FreeBSD-src-2a09710001f8d4e44d609b777dbca5f6426072ed.tar.gz
Add a WITH_CLANG_IS_CC option for src.conf(5), disabled by default, that
installs clang as /usr/bin/cc, /usr/bin/c++ and /usr/bin/cpp. Note this does *not* disable building and installing gcc, which will still be available as /usr/bin/gcc, /usr/bin/g++ and /usr/bin/gcpp. If you want to disable gcc completely, you must use WITHOUT_GCC. MFC after: 2 weeks
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/clang/clang/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/clang/clang/Makefile b/usr.bin/clang/clang/Makefile
index 48f1655..5b033a8 100644
--- a/usr.bin/clang/clang/Makefile
+++ b/usr.bin/clang/clang/Makefile
@@ -13,6 +13,14 @@ LINKS= ${BINDIR}/clang ${BINDIR}/clang++ \
${BINDIR}/clang ${BINDIR}/clang-cpp
MLINKS= clang.1 clang++.1 \
clang.1 clang-cpp.1
+.if ${MK_CLANG_IS_CC} != "no"
+LINKS+= ${BINDIR}/clang ${BINDIR}/cc \
+ ${BINDIR}/clang ${BINDIR}/c++ \
+ ${BINDIR}/clang ${BINDIR}/cpp
+MLINKS+= clang.1 cc.1 \
+ clang.1 c++.1 \
+ clang.1 cpp.1
+.endif
TGHDRS= CC1AsOptions \
CC1Options \
OpenPOWER on IntegriCloud