summaryrefslogtreecommitdiffstats
path: root/usr.bin/clang
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-08-21 17:58:30 +0000
committerdim <dim@FreeBSD.org>2012-08-21 17:58:30 +0000
commit9d2ff6f8e931bc56264a4527c7e63118ed3d8015 (patch)
tree4cc56c0575c26326874ef12ec80483bc23354100 /usr.bin/clang
parentac73a7a6bd9848b0040620a0a5e578ee4a5a74ca (diff)
downloadFreeBSD-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/Makefile4
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 \
OpenPOWER on IntegriCloud