summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kern.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index eede8c7..2b4b82c 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -85,6 +85,15 @@ INLINE_LIMIT?= 15000
.endif
#
+# For MIPS we also tell gcc to use floating point emulation and
+# disable MIPS DSP ASE Instruction set.
+#
+.if ${MACHINE_ARCH} == "mips"
+CFLAGS+= -msoft-float -mno-dsp
+INLINE_LIMIT?= 15000
+.endif
+
+#
# GCC 3.0 and above like to do certain optimizations based on the
# assumption that the program is linked against libc. Stop this.
#
OpenPOWER on IntegriCloud