mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
The driver-XXX.c files used for host CPU detection with -march=native
should not be compiled in the cross-tools case (where -march=native makes no sense). This fixes cross-building x86 toolchains on non-x86 systems.
This commit is contained in:
parent
704c91294b
commit
5a7bfc90a9
1 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,8 @@ CFLAGS+= ${DRIVER_DEFINES}
|
|||
|
||||
SRCS= gcc.c opts-common.c options.c intl.c prefix.c version.c
|
||||
|
||||
.if exists(${GCCDIR}/config/${GCC_CPU}/driver-${GCC_CPU}.c)
|
||||
.if ${TARGET_ARCH} == ${MACHINE_ARCH} && \
|
||||
exists(${GCCDIR}/config/${GCC_CPU}/driver-${GCC_CPU}.c)
|
||||
SRCS+= driver-${GCC_CPU}.c
|
||||
.endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue