Boost logo

Boost-Build :

Subject: Re: [Boost-build] [Mac XCode 3.1.1][boost_1_37_0] use MaxOSX10.4u.sdk
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2008-11-11 09:21:54


Thanks Michael & Vladimir.

I'll have to study up on the provided link.

Thanks, Jeff

Michael Jackson wrote:
>
>
> On Nov 11, 2008, at 8:19 AM, Jeff Flinn wrote:
>
>> How do I specify that the osx 10.4 universal sdk is used when building
>> boost_1_37_0 on Max OSX 10.5.5 and XCode 3.1.1.
>>
>> Using:
>>
>> bjam --toolset=darwin architecture=combined link=static debug release
>> stage
>>
>> uses the 10.5 sdk, which causes problems when our app links with
>> boost::filesystem.
>>
>> Thanks, Jeff
>
>
> Interesting, What issues are you having with the link stage? By using
> the 10.4uSDK you are basically saying that your application should only
> work on 10.4. If it works on 10.5 you are lucky.
>
> If you want to be able to run on 10.4 and 10.5 then you need to set the
> SDK to 10.5 but the deployment target to 10.4 so that GCC performs weak
> linking to the SDKs.
>
>
> from the following web page:
> <http://public.kitware.com/Bug/view.php?id=6195>
> ----------------------------------------------------------------------
> Adjusting the SDK value has this effect.
>
> "The name or path of the base SDK being used during the build. The
> product will be built against the headers and libraries located inside
> the indicated SDK. This path will be prepended to all search paths, and
> will be passed through the environment to the compiler and linker."
>
>
> And for deployment target:
>
> "Code will load on this and later versions of Mac OS X. Framework APIs
> that are unavailable in earlier versions will be weak-linked; your code
> should check for null function pointers or specific system versions
> before calling newer APIs." This can be set by using the
> "-mmacosx-version-min" flag, as in -mmacosx-version-min=10.4
>
> ----------------------------------------------------------------------
>
> _________________________________________________________
> Mike Jackson mike.jackson_at_[hidden]
> BlueQuartz Software www.bluequartz.net
> Principal Software Engineer Dayton, Ohio
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>


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