Revert r303911 "Remove extra -msoft-float flags settings."

This was not properly tested.
This commit is contained in:
Ruslan Bukin 2016-08-11 13:42:31 +00:00
parent b44d5b4a49
commit 01a62066c3
2 changed files with 10 additions and 0 deletions

View File

@ -327,6 +327,11 @@ CFLAGS += -mfloat-abi=softfp
.endif
.endif
.if ${MACHINE_CPUARCH} == "riscv"
CFLAGS += -msoft-float
ACFLAGS += -msoft-float
.endif
# NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk
.if !defined(NO_CPU_CFLAGS)

View File

@ -58,6 +58,11 @@ assym.o: assym.s
${AS} -meabi=5 -o assym.o assym.s
.endif
.if ${MACHINE_CPUARCH} == "riscv"
assym.o: assym.s
${AS} -msoft-float -o assym.o assym.s
.endif
.include <bsd.kmod.mk>
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h