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] |
On 14 November 2012 22:40, Johannes Stezenbach <js@sig21.net> wrote: > On Wed, Nov 14, 2012 at 02:06:18PM +1300, Michael Hope wrote: >> On 14 November 2012 13:30, Yann E. MORIN <yann.morin.1998@free.fr> wrote: >> > On Wednesday 14 November 2012 Michael Hope wrote: >> >> It turns out that GCC and the libraries are being built without >> >> optimisation. > ... >> --- a/scripts/crosstool-NG.sh.in Fri Nov 09 18:22:31 2012 +0100 >> +++ b/scripts/crosstool-NG.sh.in Wed Nov 14 13:48:18 2012 +1300 >> @@ -494,7 +494,9 @@ >> fi >> >> # Help gcc >> - CT_CFLAGS_FOR_HOST= >> + # Explicitly optimise, else the lines below will overide the >> + # package's default optimisation flags >> + CT_CFLAGS_FOR_HOST="-O2 -g" >> [ "${CT_USE_PIPES}" = "y" ] && CT_CFLAGS_FOR_HOST+=" -pipe" >> CT_CFLAGS_FOR_HOST+=" ${CT_EXTRA_FLAGS_FOR_HOST}" > > FWIW, I brought this issue up in February: > http://sourceware.org/ml/crossgcc/2012-02/msg00089.html > > I should've sent a patch but it was so easy to just > use CT_EXTRA_FLAGS_FOR_HOST... Looking at the original discussion, a nice thing about putting these options first is EXTRA_FLAGS appear later in the command line and can override these defaults. So if you want to build at -Os you can. I can't find the 'disable debug' option though - I thought there was a '-no-flag-name' such as '-no-g' addeded in recent GCCs. -- Michael -- 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] |