Author: dim
Date: Sat Dec 24 19:01:31 2011
New Revision: 228868
URL: http://svn.freebsd.org/changeset/base/228868
Log:
When building the kernel for amd64 with clang, don't attempt to use the
-frename-registers option, as it is not supported. No change for builds
with gcc.
MFC after: 1 week
Modified:
head/sys/conf/kern.pre.mk
Modified: head/sys/conf/kern.pre.mk
==============================================================================
--- head/sys/conf/kern.pre.mk Sat Dec 24 18:57:42 2011 (r228867)
+++ head/sys/conf/kern.pre.mk Sat Dec 24 19:01:31 2011 (r228868)
@@ -34,8 +34,12 @@ _MINUS_O= -O2
.endif
.endif
.if ${MACHINE_CPUARCH} == "amd64"
+.if ${CC:T:Mclang} != "clang"
COPTFLAGS?=-O2 -frename-registers -pipe
.else
+COPTFLAGS?=-O2 -pipe
+.endif
+.else
COPTFLAGS?=${_MINUS_O} -pipe
.endif
.if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"