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] |
Arnaud -- Most makefiles are set up so you can specify flags for that compilation on the make command line. You probably want to do something like this: make CFLAGS=-O3 CXXFLAGS=-O3 If you are passing multiple flags, you'll need to quote those values: make CFLAGS="-O3 -g" ... (If you try just: make -O3 then 'make' will think you're trying to pass some flag "-O" to make itself, not to the compilers invoked by make.) Best regards, Anthony Foiani On Sat, May 25, 2013 at 8:01 AM, gabx <arnaud.gaboury@gmail.com> wrote: > Dear all, > > I am working since many weeks now on a armv7-a toolchain with gcc 4.8. It > builds with no issue since a while. > I am now trying to pass some optimization CXX_FLAGS. > > When I enable the -03 flag for example, I write this in my .config: > > # gcc other options > # > CT_CC_ENABLE_CXX_FLAGS="-O3". > > It builds fine. Now I am wondering if I have to pass again this flag when I > use this toolchain to build, let's say, android ROM. > Shall I : > $ make -03 > > or as this flag has been activated when building the toolchain I do not need > to pass it again ? > > In short, $ make or $ make -03 ? > > Thank you for help > > > > > -- > View this message in context: http://sourceware-org.1504.n7.nabble.com/gcc-CXX-FLAGS-tp233249.html > Sent from the Sourceware - crossgcc list mailing list archive at Nabble.com. > > -- > For unsubscribe information see http://sourceware.org/lists.html#faq > -- 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] |