summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.cpu.mk
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2015-08-24 00:03:51 +0000
committerimp <imp@FreeBSD.org>2015-08-24 00:03:51 +0000
commit70b2b492001f0d16684fac67a7a9728eaa2bf752 (patch)
tree8df6c366c6d4c603bc342f2dd59f98ef08215f20 /share/mk/bsd.cpu.mk
parent791d6a6004cec6ee640ac7682f9bf004085cbfae (diff)
downloadFreeBSD-src-70b2b492001f0d16684fac67a7a9728eaa2bf752.zip
FreeBSD-src-70b2b492001f0d16684fac67a7a9728eaa2bf752.tar.gz
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.
Diffstat (limited to 'share/mk/bsd.cpu.mk')
-rw-r--r--share/mk/bsd.cpu.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index 7d776bc..60f775f 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -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
OpenPOWER on IntegriCloud