cal at macports.org
Sat Jul 13 05:56:50 PDT 2013
On Fri, Jul 12, 2013 at 03:28:23PM -0500, 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
> echo i386 ppc ppc64 x86_64
That sounds like a reasonable setup. The use case here is to build
darwintrace.dylib for all architectures that can be run on the build
system. If we only built darwintrace.dylib for the standard
architecture, a build tool compiled for a different arch (e.g. a
i386-version of make) could not be loaded with the darwintrace library,
breaking trace mode for this binary.
Building for all four architectures isn't necessary, but probably won't
do any harm, either.
More information about the macports-dev