
Hello Mani, Nice write-up and I'm glad you've got things working. I've been in this same situation as I am building univeral binaries that need boost libs on both 10.5 and 10.6. I've been able to do this in one build command using the patches here: http://trac.macports.org/browser/trunk/dports/devel/boost/files/patch-tools-... http://trac.macports.org/browser/trunk/dports/devel/boost/files/patch-tools-... See also: http://trac.macports.org/ticket/21408 Essentially it came down to: 1) providing the right set of -arch flags for a 10.5 or 10.6 (no -arch ppc64) system. 2) avoiding the usage of the -m64 type flags (does Boost specifically need these in any way?), since they seem to cause problems when conflicting with the (multiple) apple only -arch flags that can be used to build (all in one fell swoop) FAT universal libs. -m32 -m64 Generate code for a 32-bit or 64-bit environment. The 32- bit environment sets int, long and pointer to 32 bits and generates code that runs on any i386 system. The 64-bit environment sets int to 32 bits and long and pointer to 64 bits and generates code for AMD's x86-64 architecture. For darwin only the -m64 option turns off the -fno-pic and -mdynamic-no-pic options. Dane On Oct 15, 2009, at 1:40 AM, Manfred Schwind wrote:
I followed all tricks mentioned in this list or other forums (e.g. removing the -m64 option), but nothing worked for us. Building 32- Bit and 64-Bit at the same time seems to be broken. But I managed how to build a 4-way universal binary on Snow Leopard: just build every architecture separately and afterwards put everything together using the lipo tool.
I wrote a blog article about how we build the 4-way universal binaries of Boost on Snow Leopard for our needs:
http://www.mani.de/backstage/?p=324
Regards, Mani
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users