This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Huge binaries?
- To: Jason Merrill <jason at cygnus dot com>
- Subject: Re: Huge binaries?
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Fri, 19 Nov 1999 10:22:07 -0800 (PST)
- cc: Gerald Gutierrez <gutier at intergate dot bc dot ca>, libstdc++ at sourceware dot cygnus dot com
> 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