I dunno if this info is gonna be of value for anyone, but just in case: if you want to build software on Leopard for ppc64 with Macports or otherwise, you will likely bump into a problem with llvm, which is required for ld64 (native Xcode one won't work for new stuff) and has to be of the same architecture (so you can't just skip arch-check).
llvm-3.3 and llvm-3.4 fail to build for ppc+ppc64 and even just ppc64. Anyone interested, see: https://trac.macports.org/ticket/64760
I spend several days on that, went past ranlib errors, but it still failed.
However what I found is that llvm-3.7 (and also llvm-3.8) builds for ppc64 easily with no tweaks to settings or code. Then it allows to rebuild ld64-97 as +llvm37 (again, a standard variant, no need to tweak port file) and then rebuild ld64 for ppc64. In result you get ppc64 linker.
The caveat: llvm-3.7 does not build with gcc-4.2. So you will need to first build llvm-3.4 as ppc32, then ld64 as ppc32, then build gcc6 or gcc7 as universal, then build llvm-3.7 as ppc64, then rebuild ld64.
(Or if you know a better way, please advise me.)
llvm-3.3 and llvm-3.4 fail to build for ppc+ppc64 and even just ppc64. Anyone interested, see: https://trac.macports.org/ticket/64760
#64253 (llvm-3.3 and llvm-3.4 fail for ppc+ppc64) – MacPorts
trac.macports.org
However what I found is that llvm-3.7 (and also llvm-3.8) builds for ppc64 easily with no tweaks to settings or code. Then it allows to rebuild ld64-97 as +llvm37 (again, a standard variant, no need to tweak port file) and then rebuild ld64 for ppc64. In result you get ppc64 linker.
The caveat: llvm-3.7 does not build with gcc-4.2. So you will need to first build llvm-3.4 as ppc32, then ld64 as ppc32, then build gcc6 or gcc7 as universal, then build llvm-3.7 as ppc64, then rebuild ld64.
(Or if you know a better way, please advise me.)