aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc/Makefile.fe
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/cc/Makefile.fe')
-rw-r--r--gnu/usr.bin/cc/Makefile.fe5
1 files changed, 3 insertions, 2 deletions
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