diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2012-02-29 22:58:51 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2012-02-29 22:58:51 +0000 |
commit | dfbaea8347907381409d72496449fdb53a823551 (patch) | |
tree | 2af64063549570e0a548bdc894aa9b6e2f75ee88 /usr.bin | |
parent | 6b9597aac404104039c95f4fab7201d727338702 (diff) | |
download | src-dfbaea8347907381409d72496449fdb53a823551.tar.gz src-dfbaea8347907381409d72496449fdb53a823551.zip |
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
Notes
Notes:
svn path=/head/; revision=232322
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/clang/clang/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/clang/clang/Makefile b/usr.bin/clang/clang/Makefile index 48f1655cde04..5b033a86272f 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 \ |