| 153 | # the following is inspired by the icu Portfile |
| 154 | # if we can't run executables for the target arch, mark it as a cross-compile |
| 155 | foreach arch ${configure.universal_archs} { |
| 156 | if {((${os.major} < 9 || [sysctl hw.cpu64bit_capable] == 0) && ($arch == "x86_64" || $arch == "ppc64")) |
| 157 | || (${os.arch} == "powerpc" && ($arch == "x86_64" || $arch == "i386")) |
| 158 | || (${os.arch} == "i386" && ($arch == "ppc" || $arch == "ppc64"))} { |
| 159 | set merger_configure_args($arch) "--enable-cross-compile --target-os=${os.platform}" |
| 160 | } |
| 161 | } |