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

See the CrossGCC FAQ 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: Compile flags to minimize library size?


Daniel Kabs wrote:
> Hello DaveK!
> 
> On Thursday 03 November 2005 14:18, Dave Korn wrote:
>>   It may be informative to examine how crosstool.sh uses the
>> EXTRA_TARGET_CFLAGS: AFAICS, it's only applied to the glibc build.
> 
> And crosstool.sh concurs:
> 
>> test -z "${EXTRA_TARGET_CFLAGS}"   && echo "EXTRA_TARGET_CFLAGS not set,
>> so not passing any extra cflags to gcc when building glibc"
> 
> Nevertheless, I'll just give it a try and see if it works for libstdc++,
> too. 
> 
> I admit my approach follows trial and error. That's because I don't know
> what steps are needed to build a toolchain manually. But that's exactly
> the reason why I use crosstool :-)
> 
> Cheers
> Daniel


  Save your build logs, and see if you can find the command where it recurses
into the $target/libstdc++-v3 subdir, then look at the make command line it's
issuing to get there.  With a bit of luck you'll see some likely-looking
candidates being passed on the command line.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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