This is not a very flexible solution. But as I have no mcu with a
floatingpoint unit to test the toolchain on ...
GCCFLAGS=
else
# To default to the Cortex-M3:
- GCCFLAGS="--with-arch=armv7-m --with-mode=thumb"
+ GCCFLAGS="--with-arch=armv7-m --with-mode=thumb --with-float=soft"
fi
# Pull in the local configuration, if any
--with-gnu-ld \
--disable-nls \
--disable-werror \
- --disable-newlib-supplied-syscalls
+ --disable-newlib-supplied-syscalls \
+ --with-float=soft
log "Building ${NEWLIB}"
- make ${MAKEFLAGS}
+ make ${MAKEFLAGS} CFLAGS_FOR_TARGET="-msoft-float" CCASFLAGS="-msoft-float"
install ${NEWLIB} install
cd ..
log "Cleaning up ${NEWLIB}"