Boost logo

Boost-Build :

Subject: [Boost-build] Mac OS X Universal python link problem
From: Matt Bendiksen (matt_boost_at_[hidden])
Date: 2010-02-14 17:27:44


Boost vers: 1.42.0
OS: Mac 10.6 (but I'm targetting 10.5)

I'm able to build and run the python example files, but when I try to create a Universal shared library (PPC+x86 32/64-bit) using the bjam 'address-model=32_64' arg g++ is failing on the link. I dug into it a bit, and it appears the problem is because executing bjam address-model=32_64 is passing the '-arch ppc64' flag to g++ (libtool). However, the OS X system installed Python framework only includes ppc, i386 and x86_64, so it fails with a bunch of unresolved funcs. I remove the '-arch ppc64' from the g++ link line, and it then linked without errors.

I'm not sure what correct fix is for this, but for the time being I've hacked "support-ppc64" to 0 inside darwin.jam. I suppose there might be an argument for wanting to build 64-bit PPC when the toolset is darwin, but if the os-x version targeted is Mac it seems that 64-bit PPC should always be dropped to avoid link problems against system frameworks.

Matt Bendiksen


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk