aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.own.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index 6690d68e9d83..8839bb4d1e0b 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -288,6 +288,18 @@ _no_fdt= FDT
.endif
#
+# Default behaviour of MK_CLANG depends on the architecture.
+#
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \
+ ${MACHINE_ARCH} == "powerpc"
+_clang_yes=CLANG
+_clang_no=
+.else
+_clang_yes=
+_clang_no=CLANG
+.endif
+
+#
# MK_* options which default to "yes".
#
.for var in \
@@ -314,6 +326,7 @@ _no_fdt= FDT
BZIP2 \
CALENDAR \
CDDL \
+ ${_clang_yes} \
CPP \
CRYPT \
CTM \
@@ -417,6 +430,7 @@ MK_${var}:= yes
BIND_LIBS \
BIND_SIGCHASE \
BIND_XML \
+ ${_clang_no} \
${_no_fdt} \
HESIOD \
IDEA
@@ -497,6 +511,7 @@ MK_GROFF:= no
.endif
.if ${MK_TOOLCHAIN} == "no"
+MK_CLANG:= no
MK_GDB:= no
.endif