Building for different version and/or SDK

Ryan Schmidt ryandesign at macports.org
Thu Sep 9 00:17:21 PDT 2010


On Sep 9, 2010, at 01:44, Harry van der Wolf wrote:

> 2010/9/8 Joshua Root <jmr at macports.org>
> 
>> This is implemented more sanely, but is still completely unsupported, in
>> 1.9.0+. Just set macosx_deployment_target to whatever version you want
>> (e.g. "10.5") in macports.conf. Base will then set
>> MACOSX_DEPLOYMENT_TARGET in the environment (which is equivalent to
>> -mmacosx-version-min in CFLAGS) and set configure.sdkroot to the
>> appropriate SDK, which ends up as "-isysroot foo" in CFLAGS/CPPFLAGS etc.
> 
> Thanks a lot for your answer. I will start rebuilding tonight.
> 
> Just to confirm whether I used the correct syntax: I now added to /opt/local/etc/macports/macports.conf the following 2 lines:
> 
> MACOSX_DEPLOYMENT_TARGET        10.5
> 
> SDKROOT                         /Developer/SDKs/MacOSX10.5.sdk

My understanding from what Joshua wrote above is that your macports.conf should be expanded by only the following line:

macosx_deployment_target 10.5

And it sounds like you do not set the SDK manually; MacPorts sets it for you based on what you set macosx_deployment_target to.



More information about the macports-users mailing list