CFLAGS in one-tree style cross builds w/ newlib
Ian Lance Taylor
ian@airs.com
Wed Sep 14 17:36:00 GMT 2005
Ralf Corsepius <ralf.corsepius@rtems.org> writes:
> As it seems to me, CFLAGS handling with newlib+gcc-4.0.x one-tree style
> cross-builds seems broken.
>
> So far I have tried different permutations of setting CFLAGS,
> CFLAGS_FOR_BUILD, CFLAGS_FOR_HOST and CFLAGS_FOR_TARGET, but have not
> been successful so far.
>
> Therefore - question: How is one supposed to pass custom CFLAGS to the
> host-compiled components in GCC without breaking newlib?
Usually by wrapping them in CC:
make CC="gcc -foobar"
We could introduce CFLAGS_FOR_HOST. The main problem is that we would
have to use it practically everywhere.
Ian
More information about the Newlib
mailing list