diff options
author | dim <dim@FreeBSD.org> | 2012-08-21 17:58:30 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-08-21 17:58:30 +0000 |
commit | 9d2ff6f8e931bc56264a4527c7e63118ed3d8015 (patch) | |
tree | 4cc56c0575c26326874ef12ec80483bc23354100 /usr.bin/clang | |
parent | ac73a7a6bd9848b0040620a0a5e578ee4a5a74ca (diff) | |
download | FreeBSD-src-9d2ff6f8e931bc56264a4527c7e63118ed3d8015.zip FreeBSD-src-9d2ff6f8e931bc56264a4527c7e63118ed3d8015.tar.gz |
Support the WITH_SHARED_TOOLCHAIN setting that was introduced in r234782
for the clang executable. Build it statically by default, like the gcc
executables, which should improve performance a little bit.
MFC after: 1 week
Diffstat (limited to 'usr.bin/clang')
-rw-r--r-- | usr.bin/clang/clang/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/clang/clang/Makefile b/usr.bin/clang/clang/Makefile index 60667f6..7c8f0e4 100644 --- a/usr.bin/clang/clang/Makefile +++ b/usr.bin/clang/clang/Makefile @@ -9,6 +9,10 @@ SRCS= cc1_main.cpp \ cc1as_main.cpp \ driver.cpp +.if ${MK_SHARED_TOOLCHAIN} == "no" +NO_SHARED?= yes +.endif + LINKS= ${BINDIR}/clang ${BINDIR}/clang++ \ ${BINDIR}/clang ${BINDIR}/clang-cpp MLINKS= clang.1 clang++.1 \ |