"statically linked" vs. Mac OS X

Abe via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 31 18:02:25 PDT 2014


BTW: FYI: at least on recent-enough versions of Mac OS X, from 
what I have read, Apple has effectively "forbidden" _true_ static 
linking, i.e. executables with no dynamic-library dependencies 
whatsoever.

Here`s the relevant result from the D-based "hello world" 
executable:

   > otool -L foo
   foo:
	/usr/lib/libSystem.B.dylib          (compatibility version 
1.0.0, current version 125.2.11)

	/opt/GCC_4.8.1/lib/libgcc_s.1.dylib (compatibility version 
1.0.0, current version 1.0.0)


[obviously, that second line refers to a GCC that I build & 
installed myself]

— Abe


More information about the Digitalmars-d mailing list