[phobos] 64 & 32 bit libraries for OSX

Martin Nowak dawg at dawgfoto.de
Tue Nov 8 19:37:24 PST 2011

On Wed, 09 Nov 2011 02:45:08 +0100, Walter Bright <walter at digitalmars.com>  

> On Linux, the 64 bit and 32 bit libraries exist along separate paths,  
> and we put both paths on the command to the linker:
> DFLAGS=-I%@P%/../../src/phobos -I%@P%/../../src/druntime/import  
> -L-L%@P%/../lib32 -L-L%@P%/../lib64
> -L--no-warn-search-mismatch -L--export-dynamic
> However, attempting to do this on OSX fails (using -L-no_arch_warnings  
> instead of -L--no-warn-search-mismatch). It apparently always tries to  
> link in the first library found, not the first one with matching  
> architecture.
> What is the right way on OSX to do a dual-architecture library?
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos

Building two static libraries and merging them with lipo(1) should do the  

More information about the phobos mailing list