Re: creating statically linked binaries

Shawn Erickson <[email protected]>
Newsgroups gmane.os.opendarwin.general
Message-ID <[email protected]>
On Jan 12, 2005, at 7:05 AM, brendan Murphy wrote:

> Hi,
>
> Im developing on a machine with a Darwin Kernel Version 7.6.0, and I 
> need to create a
> Cocoa or c++ binary that is completely statically linked (as it will 
> be running in Open Firmware, which doesn't seem to support dynamic 
> linked libraries).
>
> It seems that the MAC OSX 3.6 doesn't directly support statically 
> link, but it can be done
> by rebuild the CSU module. Has any one any experience on this or could 
> they point me in the right direction.
>
> Basically I need a static version libSystem.B.dylib (and probably a 
> few other too!!)
>
> Regards,
> Brendan...

Wow I don't see how you could get Cocoa, etc. to work directly from 
Open Firmware,  what are you trying to do? how much of the OS will be 
running?

Anyway the Cocoa frameworks and many of the frameworks, etc. it depends 
on are not open source and are only provided in framework form (aka 
dynamic libraries). In theory with a little hackery you could extract 
and make it a static library but...

Also Cocoa and friends is not part of Darwin only part of Mac OS X.

FYI it is "Mac OS X 10.3.6" with "Mac OS X" its name and "10.3.6" its 
version (MAC is often taken to mean Media Access Controller, an 
ethernet interface basically).

-Shawn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.