summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2011-02-22 04:49:57 +0000
committerimp <imp@FreeBSD.org>2011-02-22 04:49:57 +0000
commit8eb2cccfad35e8f1a2847cc044fd49971bb1577e (patch)
tree48ef899ddab43962fbed8b02e539e71f7d1f0544 /share/mk
parent2fb25180e9862bbf0d6bc91b09654b851324924d (diff)
downloadFreeBSD-src-8eb2cccfad35e8f1a2847cc044fd49971bb1577e.zip
FreeBSD-src-8eb2cccfad35e8f1a2847cc044fd49971bb1577e.tar.gz
Back out 218933 and 281934. The easy cases still worked, but some
hard cases broke in worse ways than the status quo. Back them out until that can be resolved.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.own.mk17
1 files changed, 16 insertions, 1 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index c23a004..5c62ae5 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -282,6 +282,18 @@ WITH_IDEA=
.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 \
@@ -301,6 +313,7 @@ WITH_IDEA=
BIND_MTREE \
BIND_NAMED \
BIND_UTILS \
+ BINUTILS \
BLUETOOTH \
BOOT \
BSD_CPIO \
@@ -308,7 +321,7 @@ WITH_IDEA=
BZIP2 \
CALENDAR \
CDDL \
- CLANG \
+ ${_clang_yes} \
CPP \
CRYPT \
CTM \
@@ -323,6 +336,7 @@ WITH_IDEA=
FP_LIBC \
FREEBSD_UPDATE \
GAMES \
+ GCC \
GCOV \
GDB \
GNU \
@@ -412,6 +426,7 @@ MK_${var}:= yes
BIND_SIGCHASE \
BIND_XML \
BSD_GREP \
+ ${_clang_no} \
GPIO \
HESIOD \
IDEA
OpenPOWER on IntegriCloud