summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.mk
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-10-24 18:35:16 +0000
committerdim <dim@FreeBSD.org>2011-10-24 18:35:16 +0000
commite1fd5e5331152957e7a87f2ef2e02d155ed07de5 (patch)
tree1e797cd5bb5e786862d40482908548816c298ad4 /sys/conf/kern.mk
parent080d3778f8e855f454c812d3c7ed12048377d8ef (diff)
downloadFreeBSD-src-e1fd5e5331152957e7a87f2ef2e02d155ed07de5.zip
FreeBSD-src-e1fd5e5331152957e7a87f2ef2e02d155ed07de5.tar.gz
Put in a temporary band-aid to fix kernel builds when CC=clang, after
r226665.
Diffstat (limited to 'sys/conf/kern.mk')
-rw-r--r--sys/conf/kern.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 9fc379f..80997c5 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -7,7 +7,7 @@ FREEBSD_GCC!= ${CC} --version | grep FreeBSD || true
#
# Warning flags for compiling the kernel and components of the kernel:
#
-.if ${FREEBSD_GCC}
+.if defined(FREEBSD_GCC) && ${FREEBSD_GCC}
# FreeBSD extensions, not available in upstream GCC
format_extensions= -fformat-extensions
no_align_long_strings= -mno-align-long-strings
OpenPOWER on IntegriCloud