This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: static executable bloat


> 
> 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)

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