From 35d4aa10d7fdfda2021bbfae1b9be4037345b495 Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Thu, 2 Dec 2010 17:36:47 +0000 Subject: Unbreak amd64<->i386 cross builds. --- gnu/usr.bin/cc/Makefile.fe | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/usr.bin/cc/Makefile.fe b/gnu/usr.bin/cc/Makefile.fe index 46b9bbc316e3..a681510cf02e 100644 --- a/gnu/usr.bin/cc/Makefile.fe +++ b/gnu/usr.bin/cc/Makefile.fe @@ -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 -- cgit v1.2.3