This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Building with float support
- From: Rick Mann <rmann at latencyzero dot com>
- To: newlib at sourceware dot org
- Date: Fri, 2 Jan 2009 03:56:08 -0800
- Subject: Building with float support
Is there anything to read about building newlib with floating-point
support (particularly in snprintf()).
I did this:
./configure --target=arm-elf --prefix=/usr/local/arm-elf-float
and modified the resulting Makefile to include these lines:
CFLAGS_FOR_TARGET = -DFLOATING_POINT -g -O2
CXXFLAGS_FOR_TARGET = -DFLOATING_POINT -g -O2
Then I did "make install" and placed the results from arm-elf-float
into my existing arm-elf-gcc/newlib installation. After recompiling my
project, I'm still getting behavior that indicates there's no floating
point support (garbage printed for %f printf).
Did I miss a setting or do something wrong?
TIA,
--
Rick