This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]