We need to add the soft float to the CFLAGS always, not just when

NO_CPUCFLAGS is not defined since it is part of the ABI as we've
defined it, not just a nice optimization.
This commit is contained in:
Warner Losh 2015-08-24 00:03:51 +00:00
parent c404eb64d6
commit d1f6fa8f71

View File

@ -273,7 +273,9 @@ CFLAGS += -G0
.endif
.if ${MACHINE_ARCH} == "armv6"
_CPUCFLAGS += -mfloat-abi=softfp
# Needs to be CFLAGS not _CPUCFLAGS because it's needed for the ABI
# not a nice optimization.
CFLAGS += -mfloat-abi=softfp
.endif
# NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk