svn commit: r216127 - head/gnu/usr.bin/cc

Nathan Whitehorn nwhitehorn at FreeBSD.org
Thu Dec 2 17:36:48 UTC 2010


Author: nwhitehorn
Date: Thu Dec  2 17:36:47 2010
New Revision: 216127
URL: http://svn.freebsd.org/changeset/base/216127

Log:
  Unbreak amd64<->i386 cross builds.

Modified:
  head/gnu/usr.bin/cc/Makefile.fe

Modified: head/gnu/usr.bin/cc/Makefile.fe
==============================================================================
--- head/gnu/usr.bin/cc/Makefile.fe	Thu Dec  2 16:46:28 2010	(r216126)
+++ head/gnu/usr.bin/cc/Makefile.fe	Thu Dec  2 17:36:47 2010	(r216127)
@@ -19,8 +19,9 @@ CFLAGS+= ${DRIVER_DEFINES}
 
 SRCS=	gcc.c opts-common.c options.c intl.c prefix.c version.c
 
-.if ${TARGET_ARCH} == ${MACHINE_ARCH} && \
-   exists(${GCCDIR}/config/${GCC_CPU}/driver-${GCC_CPU}.c)
+# Include -march=native support for native-ish compilers only
+.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64") && \
+    ${GCC_CPU} == "i386"
 SRCS+=  driver-${GCC_CPU}.c
 .endif
 


More information about the svn-src-head mailing list