static executable bloat

H.J. Lu hjl@lucon.org
Sun Aug 22 10:11:00 GMT 1999


> 
> hjl@lucon.org (H.J. Lu) writes:
> 
> > May I ask if it is ok to add some flags to get a smaller static
> > binary without gconv and/or wchar support? I am thinking to write
> > libNoGconv.a and libNoWchar.a. People can stub out gconv and/or wchar
> > with
> > 
> > # gcc -static .... -lNoGconv -lNoWchar
> 
> With this approach no libc change would be necessary so it is of
> course ok with me.
> 

I guessed you wouldn't object too much. But I am not sure if it will do
for those people who want smaller static binaries.

BTW, I want to change Makefiles in libc to build libNoXXX.a. But no
source code changes in libc. I will just add those stub functions
for libNoXXX.a.

Thanks.

-- 
H.J. Lu (hjl@gnu.org)


More information about the Libc-hacker mailing list