Boost logo

Boost-Build :

Subject: Re: [Boost-build] having trouble building universal binaries for Mac OSX
From: Ian Emmons (iemmons_at_[hidden])
Date: 2009-02-06 20:04:08


As Volodya has mentioned, "architecture=combined" is great if all you
want is i386 and ppc, but if you want the 64-bit versions as well,
then a variation on your user-config.jam trick will work. I use this:

using darwin
    : 4.0.1 # this version number is probably unnecessary
    : # omitted command
    : <cflags>"-arch x86_64 -arch i386 -arch ppc64 -arch ppc"
       <cxxflags>"-arch x86_64 -arch i386 -arch ppc64 -arch ppc"
       <linkflags>"-arch x86_64 -arch i386 -arch ppc64 -arch ppc"

(Apparently, the Darwin toolset doesn't support the <compileflags>



On Feb 6, 2009, at 3:18 PM, Eric Johnson wrote:

Hi All,
    I have been having a difficult time trying to build universal (ppc
and i386) libraries. I've tried various ways that I've seen described
on the web, but none of them seem to work. A recent post on the Boost-
users mailing list looked promising, but didn't work for me either.
My machine is an Intel one running OSX 10.5.6. Building boost 1.37.0
libraries using bjam 03.1.17. Here's what I tried:

bjam --toolset=darwin --architecture=combined threading=multi --build-
dir=/Volumes/Data_Storage/depot/sdk/boost/boost_1_37_0/lib/mac --with-

The result was static and dynamic libraries for Intel only.

I also tried editing my user-config.jam file:
# Compiler configuration
using darwin : : : <compileflags>-arch ppc -arch i386 <linkflags>-arch
ppc -arch i386 ;

This also did not work for me.

Any help would be greatly appreciated. Thanks,

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at