gcc CXX_FLAGS
Anthony Foiani
anthony.foiani@gmail.com
Sun May 26 01:42:00 GMT 2013
Arnaud --
On Sat, May 25, 2013 at 4:59 PM, gabx <arnaud.gaboury@gmail.com> wrote:
> Now I am still wondering if I need to pass again the flags when I build the
> android ROM or Kernel.
Generally, yes.
As Yann explained, the CT_CC_... variables are only used to build gcc
itself; they are not set when you use the built gcc to build other
projects.
The "export ..." method should work, although you might want to try it
with the defaults first -- the Linux kernel, at least, should be
pretty smart about picking the right flags for the various hardware
targets. Picking other flags could very well lead to instability.
(There was an issue with "-Os" on some platforms for quite a while,
and that's even a fairly standard Linux kernel config option.)
Also note that having a toolchain, or even a toolchain and a kernel,
is only a small part of building a fully distribution that can run on
a given platform. It's been covered here before, e.g.;
http://sourceware.org/ml/crossgcc/2013-03/msg00008.html
If this level of indirection makes you uncomfortable, you might see if
one of the "distribution building" tools (yocto, etc) has your
platform as a target.
Either way, good luck!
Best regards,
Anthony Foiani
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list