This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Re: CFLAGS in one-tree style cross builds w/ newlib


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


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