Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cc -static pulling in some stupid amount of stuff

On Fri, Nov 14, 2008 at 14:00:55 +1100, Geoff Wing wrote:

> :> Why did half of libc get included?
> :crt0.c->exit->atexit->...
> Yes, I wasn't questioning why some of it was included.
> It used to go to 60-70KB.  nm on a simple binary gave ~300 lines.
> nm on a current binary gives an extra 1000+ lines and includes lots
> of things which, to my eye, look completely unnecessary.
> Why are things like NIS stuff getting included?  e.g.  _yp_bind, _yp_check
> What about RPC stuff, etc.?

Ah, current.  Sorry I missed that.

cc -Wl,--print-map ... will tell you the dependencies.  I have here
handy only sh3 machines running -current and from a quick glance I
guess that stack protector stuff pulls in syslog, and jemalloc pulls
in sysctl'ified sysconf and from there hell kinda break loose :)

SY, Uwe
--                       |       Zu Grunde kommen          |       Ist zu Grunde gehen

Home | Main Index | Thread Index | Old Index