diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-12-02 17:36:47 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-12-02 17:36:47 +0000 |
commit | 789892d7ed5efe3e04bd964f26650d2043686819 (patch) | |
tree | 97235f5e0f4d9a0c2b79e9505aac29f6d99481ee /gnu | |
parent | 058617f3a0a0de5441176e9d76314c696c5e76f6 (diff) | |
download | FreeBSD-src-789892d7ed5efe3e04bd964f26650d2043686819.zip FreeBSD-src-789892d7ed5efe3e04bd964f26650d2043686819.tar.gz |
Unbreak amd64<->i386 cross builds.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/cc/Makefile.fe | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/usr.bin/cc/Makefile.fe b/gnu/usr.bin/cc/Makefile.fe index 46b9bbc..a681510 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 |