From 4f35216187fa7d839f9dc667fefcb6ee2de94f7d Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sun, 16 Mar 2014 09:38:43 +0000 Subject: [PATCH] Build fenv-vfp.c with the softfp float abi. Without this gcc generates an incorrect assembly file that doesn't allow for vfp instructions. --- lib/msun/arm/Makefile.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/msun/arm/Makefile.inc b/lib/msun/arm/Makefile.inc index cdac74af27bf..09f08d887915 100644 --- a/lib/msun/arm/Makefile.inc +++ b/lib/msun/arm/Makefile.inc @@ -7,3 +7,6 @@ SYM_MAPS += ${.CURDIR}/arm/Symbol.map ARCH_SRCS = fenv-softfp.c fenv-vfp.c .endif +CFLAGS.fenv-vfp.c= -mfloat-abi=softfp +CFLAGS+= ${CFLAGS.${.IMPSRC:T}} +