diff --git a/lib/libcompiler_rt/Makefile.inc b/lib/libcompiler_rt/Makefile.inc index ca50e21a6d05..d6e46deab595 100644 --- a/lib/libcompiler_rt/Makefile.inc +++ b/lib/libcompiler_rt/Makefile.inc @@ -241,3 +241,7 @@ SRCS+= sync_synchronize.S SRCS+= bswapdi2.c SRCS+= bswapsi2.c .endif + +.if ${MACHINE_ARCH:Mriscv*sf} +CFLAGS+= -D__SOFT_FP__ +.endif