Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
cc -static pulling in some stupid amount of stuff
Heyla,
on my -current x86 system:
% echo 'main(){}' > foo.c
% cc -o bar foo.c
text data bss dec hex filename
1525 272 36 1833 729 bar
% cc -static -o bar foo.c
% size bar
text data bss dec hex filename
326757 7284 33108 367149 59a2d bar
% nm bar
....
lots of libc stuff
....
%
Why did half of libc get included?
Regards,
Geoff
Home |
Main Index |
Thread Index |
Old Index