Kaydet (Commit) 9649d152 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Experiment with PowerPC Mac cross-compilation

Using Xcode 3 and the 10.4 SDK is obviously assumed.

Change-Id: I8fc3cf75a976edae41d430017b6110f5a424c75f
üst 22a55069
...@@ -2611,7 +2611,10 @@ dnl Check / find MacOSX SDK and compiler, version checks ...@@ -2611,7 +2611,10 @@ dnl Check / find MacOSX SDK and compiler, version checks
dnl =================================================================== dnl ===================================================================
if test "$_os" = "Darwin"; then if test "$_os" = "Darwin"; then
if test "$enable_64_bit" = "" -o "$enable_64_bit" = "no"; then if test "$build_cpu" = i386 -a "$host_cpu" = powerpc; then
# Cross-compiling for PPC from Intel
arch='-arch ppc'
elif test "$enable_64_bit" = "" -o "$enable_64_bit" = "no"; then
bitness=-m32 bitness=-m32
else else
bitness=-m64 bitness=-m64
...@@ -2798,8 +2801,8 @@ if test "$_os" = "Darwin"; then ...@@ -2798,8 +2801,8 @@ if test "$_os" = "Darwin"; then
AC_MSG_ERROR([Cannot guess gcc location for this SDK]) AC_MSG_ERROR([Cannot guess gcc location for this SDK])
;; ;;
esac esac
CC="${gccprefix}gcc-4.0 -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH" CC="${gccprefix}gcc-4.0 $arch -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
CXX="${gccprefix}g++-4.0 -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH" CXX="${gccprefix}g++-4.0 $arch -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
;; ;;
10.6) 10.6)
# Is similar logic as above needed? Is it likely somebody # Is similar logic as above needed? Is it likely somebody
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment