This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: Huge binaries?



> You'd also need '-Wl,--gc-sections'.  Unfortunately, this has problems with
> dynamic linking last I heard, and is quietly disabled.
> 
>  > I don't think the bugs with -fPIC have been worked out, so the v-3
>  > Makefiles don't turn it on by default.
> 
> Huh?

-fPIC is enabled, don't worry. The v-3 makefiles create a shared and
static library by default. What I was trying to say was that I haven't
gone through the work of automating the use of 

-ffunction-sections -fvtable-gc -Wl,--gc-sections

on hosts that can deal with this because the last time I tried to use
these flags with -O2 and -fPIC, I got a less than silent failure. Here's
the orig bug report:

http://egcs.cygnus.com/ml/gcc-bugs/1999-07/msg00879.html

Are you saying that this works now (or that I had my flags wrong?) and
that I should try and put this in, at my leisure? Or that I should put
this in only for the static builds?

-benjamin


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