Boost logo

Boost Users :

Subject: Re: [Boost-users] (was Re: 1.40.0 - 32_64 broken on OS X 10.6 Snow Leopard) (now ppc64 support removed with Xcode 3.2 on Snow Leopard.
From: Dane Springmeyer (blake_at_[hidden])
Date: 2009-10-15 12:08:52


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-build-v2-tools-gcc.jam.diff

http://trac.macports.org/browser/trunk/dports/devel/boost/files/patch-tools-build-v2-tools-darwin.jam.diff

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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net