Question about static libraries and compression

Sergey 'DoubleF' Zaharchenko doublef at tele-kom.ru
Wed Dec 24 05:23:35 PST 2003


On Tue, 23 Dec 2003 18:32:04 +0000
Daniela <dgw at liwest.at> probably wrote:

> I have a problem with linking:
> When I invoke make, I always give it the -DNOSTATIC option on the commandline 
> to save space. However, this doesn't work. My system still builds static 
> libraries. Or are the binaries linked dynamically, and the static libs are 
> there for nothing? I guess it's safe to delete them, right?

If you *know* no user will ever need them (he is not going to write
programs which link statically), then it's all right.

> Everything is self-compiled, I do not use binary packages at all.
> 
> Also, I read that the kernel can execute gzipped a.out binaries directly, can 
> the same thing be done for ELF? I need a really small system, because I want 

gzexe.

> to boot and run it from CD-ROM.

Try putting the programs in a crunchbox, as it is done on most boot-floppies.
Man crunchgen, chrunchide, etc.

> Regards,
> Daniela
> 
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 


-- 
DoubleF
"I can resist anything but temptation."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031224/75709cd3/attachment.bin


More information about the freebsd-questions mailing list