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

See crosstool-NG for lots more information.


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: gcc CXX_FLAGS


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


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