Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building a cross platform framework
From: Ian Emmons (iemmons_at_[hidden])
Date: 2008-12-04 17:16:13


Volodya,

I thought I solved this problem on my own, but my solution differs
from yours, so I thought I'd ask what you think. In my user-
config.jam file, I added the following:

using darwin
    : 4.0
    : # no command
    : <compileflags>"-arch x86_64 -arch i386 -arch ppc64 -arch ppc"
        <linkflags>"-arch x86_64 -arch i386 -arch ppc64 -arch ppc"
    ;

This seems to work (as evidenced by running otool -f on the resulting
binaries), but it doesn't seem to have an effect on building the boost
libraries themselves.

The architecture=combined approach doesn't specify which architectures
should be included in the fat binary. Should I specify both the flags
above and architecture=combined?

Thanks,

Ian

On Dec 4, 2008, at 4:05 AM, Vladimir Prus wrote:

On Thursday 04 December 2008 03:24:40 Jon McKamey wrote:
> Hey folks,
>
>
>
> I am currently working on a product using Boost on Mac. For the most
> part, it has been excellent and easy to work with. Unfortunately, I
> just ran into a big problem. I used a great tool boost-framework.sh
> (for boost boost_1_34_1) . Unfortunately, this is NOT building a
> cross-platform ppc/i386 framework, it builds it (on my machine) only
> for
> i386 I looked through all of the help, searched online, and got
> pretty
> far digging into how bjam works, and I have not yet found an answer.

Hi Jonathan,

I don't know what build-framework.sh is, and how it works. For building
fat binary you need to add architecture=combined to bjam command line --
you probably can modify your script to pass that.

- Volodya


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