From: Anthony Foiani <anthony.foiani@gmail.com>
To: gabx <arnaud.gaboury@gmail.com>
Cc: crossgcc maillist <crossgcc@sourceware.org>
Subject: Re: gcc CXX_FLAGS
Date: Sat, 25 May 2013 18:43:00 -0000 [thread overview]
Message-ID: <CAOhNY-8y7b=b=ZM1QbPRyoZ7JqiP-tV7MT1d8t3n1ngYUEFnWA@mail.gmail.com> (raw)
In-Reply-To: <1369490491980-233249.post@n7.nabble.com>
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
next prev parent reply other threads:[~2013-05-25 18:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-25 14:01 gabx
2013-05-25 18:43 ` Anthony Foiani [this message]
2013-05-25 22:59 ` gabx
2013-05-25 23:07 ` Yann E. MORIN
2013-05-26 1:42 ` Anthony Foiani
2013-05-26 12:51 ` Martin Guy
2013-05-28 17:31 ` gabx
2013-05-29 7:23 ` Martin Guy
2013-05-29 9:02 ` gabx
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOhNY-8y7b=b=ZM1QbPRyoZ7JqiP-tV7MT1d8t3n1ngYUEFnWA@mail.gmail.com' \
--to=anthony.foiani@gmail.com \
--cc=arnaud.gaboury@gmail.com \
--cc=crossgcc@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).