From 9d2ff6f8e931bc56264a4527c7e63118ed3d8015 Mon Sep 17 00:00:00 2001 From: dim Date: Tue, 21 Aug 2012 17:58:30 +0000 Subject: [PATCH] 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 --- usr.bin/clang/clang/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.bin/clang/clang/Makefile b/usr.bin/clang/clang/Makefile index 60667f6ef538..7c8f0e40d329 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 \