Universal Binaries

Joshua Root jmr at macports.org
Fri Jan 23 00:42:07 PST 2009


Ryan Schmidt wrote:
> 
> On Jan 22, 2009, at 21:59, Timothy Lee wrote:
> 
>> I just compile 1.7.0 from source and my macports.conf universal_target
>> has a 10.4 next to it. However, when I compile on my Leopard machine,
>> I see DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'.
>>
>> I thought universal_targe would set the MACOSX_DEPLOYMENT_TARGET.
>>
>> Am I wrong?
> 
> universal_target is what is used to fill the MACOSX_DEPLOYMENT_TARGET
> variable. MacPorts should be setting this by default to whatever is
> right for the current OS: 10.3 on 10.3, 10.4 on 10.4, 10.5 on 10.5. If
> the macports.conf has this setting listed, then that overrides the
> default behavior.

Not quite. It uses universal_target when the universal variant is
selected, otherwise it uses a variable called macosx_deployment_target,
which can be changed from portfiles but not from macports.conf.

- Josh


More information about the macports-users mailing list