This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: CFLAGS in one-tree style cross builds w/ newlib
- From: Ian Lance Taylor <ian at airs dot com>
- To: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- Cc: GCC List <gcc at gcc dot gnu dot org>, Joel Sherrill <joel dot sherrill at OARcorp dot com>, Newlib List <newlib at sources dot redhat dot com>
- Date: 14 Sep 2005 10:35:57 -0700
- Subject: Re: CFLAGS in one-tree style cross builds w/ newlib
- References: <1126703281.21618.202.camel@mccallum.corsepiu.local>
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