[107865] trunk/base/src

Joshua Root jmr at macports.org
Sat Jul 13 06:59:18 PDT 2013

On 2013-7-13 06:28 , Ryan Schmidt wrote:
> Or are you asking how to determine programmatically what archs would be supported? Assuming we don't need to run any built program at build time, the answer is probably all four architectures on Tiger and Leopard, and the two Intel architectures on Snow Leopard and later.
> if [ "$(uname -r | cut -d . -f 1)" -gt 9 ]; then
>     echo i386 x86_64
> else
>     echo i386 ppc ppc64 x86_64
> fi

Are you sure Tiger can run x86_64 binaries? I remember it being ppc,
i386 and sort-of ppc64 (if the only OS lib you wanted was libSystem).

Also, it's possible to run ppc binaries on Snow Leopard. Kind of a
pathological case if we end up running any, but possible nonetheless.

- Josh

More information about the macports-dev mailing list