Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: statically linking



On Sunday, Jan 2001 at 20:14:40 Matt Watson wrote:
>
> This won't work for things that call gethostbyname() or sin(), though,
> since we don't build a libinfo_static.a or libm_static.a by default. I
> guarantee that this binary will not work across releases of Darwin or Mac
> OS X. So, unless you're doing something useful to include in the OS (like
> building a statically linked mv, ls, sh, mach_init, init in case you trash
> dyld or libSystem...), you should avoid this.

That's exactly what I'm looking at doing. Traditionally, most things
in /bin and /sbin were statically linked. People are doing this less
often these days (notably, almost all major Linux distributions do not
statically link _anything_). However, I think it is a good practice
to have a minimal set of tools statically linked. I was investigating
the possibility of statically linking zsh (Darwin's /bin/sh) and the
bare essentials. Everyone on the list that has hosed their machine
while upgrading something, please raise your hand. =)

Would statically linked essentials be considered for inclusion in
future releases of Darwin, or am I wasting my time?

Thanks,
Rob




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.