build-scripts/fatbuild.sh
changeset 5609 3619f9bc639a
parent 4926 ab02a7242f08
child 5611 d20007078cd1
     1.1 --- a/build-scripts/fatbuild.sh	Sat Aug 06 02:15:23 2011 -0400
     1.2 +++ b/build-scripts/fatbuild.sh	Sun Aug 14 17:17:34 2011 -0400
     1.3 @@ -16,60 +16,6 @@
     1.4  # Generic, cross-platform CFLAGS you always want go here.
     1.5  CFLAGS="-O3 -g -pipe"
     1.6  
     1.7 -# They changed this from "darwin9" to "darwin10" in Xcode 3.2 (Snow Leopard).
     1.8 -GCCUSRPATH_PPC=`ls -d $SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin*/4.0.1`
     1.9 -if [ ! -d "$GCCUSRPATH_PPC" ]; then
    1.10 -    echo "Couldn't find any GCC usr path for 32-bit ppc"
    1.11 -    exit 1
    1.12 -fi
    1.13 -GCCUSRPATH_PPC64=`ls -d $SDK_PATH/MacOSX10.5.sdk/usr/lib/gcc/powerpc-apple-darwin*/4.0.1`
    1.14 -if [ ! -d "$GCCUSRPATH_PPC64" ]; then
    1.15 -    echo "Couldn't find any GCC usr path for 64-bit ppc"
    1.16 -    exit 1
    1.17 -fi
    1.18 -
    1.19 -# PowerPC 32-bit configure flags (10.4 runtime compatibility)
    1.20 -# We dynamically load X11, so using the system X11 headers is fine.
    1.21 -CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
    1.22 ---x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
    1.23 -
    1.24 -# PowerPC 32-bit compiler flags
    1.25 -CC_PPC="gcc-4.0 -arch ppc"
    1.26 -CXX_PPC="g++-4.0 -arch ppc"
    1.27 -CFLAGS_PPC="-mmacosx-version-min=10.4"
    1.28 -CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
    1.29 --nostdinc \
    1.30 --F$SDK_PATH/MacOSX10.4u.sdk/System/Library/Frameworks \
    1.31 --I$GCCUSRPATH_PPC/include \
    1.32 --isystem $SDK_PATH/MacOSX10.4u.sdk/usr/include"
    1.33 -
    1.34 -# PowerPC 32-bit linker flags
    1.35 -LFLAGS_PPC="-arch ppc -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 \
    1.36 --F$SDK_PATH/MacOSX10.4u.sdk/System/Library/Frameworks \
    1.37 --L$GCCUSRPATH_PPC \
    1.38 --Wl,-syslibroot,$SDK_PATH/MacOSX10.4u.sdk"
    1.39 -
    1.40 -# PowerPC 64-bit configure flags (10.5 runtime compatibility)
    1.41 -# We dynamically load X11, so using the system X11 headers is fine.
    1.42 -CONFIG_PPC64="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
    1.43 ---x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
    1.44 -
    1.45 -# PowerPC 64-bit compiler flags
    1.46 -CC_PPC64="gcc-4.0 -arch ppc64"
    1.47 -CXX_PPC64="g++-4.0 -arch ppc64"
    1.48 -CFLAGS_PPC64="-mmacosx-version-min=10.5"
    1.49 -CPPFLAGS_PPC64="-DMAC_OS_X_VERSION_MIN_REQUIRED=1050 \
    1.50 --nostdinc \
    1.51 --F$SDK_PATH/MacOSX10.5.sdk/System/Library/Frameworks \
    1.52 --I$GCCUSRPATH_PPC64/include \
    1.53 --isystem $SDK_PATH/MacOSX10.5.sdk/usr/include"
    1.54 -
    1.55 -# PowerPC 64-bit linker flags
    1.56 -LFLAGS_PPC64="-arch ppc64 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.5 \
    1.57 --F$SDK_PATH/MacOSX10.5.sdk/System/Library/Frameworks \
    1.58 --L$GCCUSRPATH_PPC64/ppc64 \
    1.59 --Wl,-syslibroot,$SDK_PATH/MacOSX10.5.sdk"
    1.60 -
    1.61  # Intel 32-bit configure flags (10.4 runtime compatibility)
    1.62  # We dynamically load X11, so using the system X11 headers is fine.
    1.63  CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \
    1.64 @@ -271,28 +217,6 @@
    1.65  done
    1.66  
    1.67  #
    1.68 -# Build the PowerPC 32-bit binary
    1.69 -#
    1.70 -if test x$configure_ppc = xyes; then
    1.71 -    (cd build/ppc && \
    1.72 -     sh ../../configure $CONFIG_PPC CC="$CC_PPC" CXX="$CXX_PPC" CFLAGS="$CFLAGS $CFLAGS_PPC" CPPFLAGS="$CPPFLAGS_PPC" LDFLAGS="$LFLAGS_PPC") || exit 2
    1.73 -fi
    1.74 -if test x$make_ppc = xyes; then
    1.75 -    (cd build/ppc && ls include && make -j$NJOB) || exit 3
    1.76 -fi
    1.77 -
    1.78 -#
    1.79 -# Build the PowerPC 64-bit binary
    1.80 -#
    1.81 -if test x$configure_ppc64 = xyes; then
    1.82 -    (cd build/ppc64 && \
    1.83 -     sh ../../configure $CONFIG_PPC64 CC="$CC_PPC64" CXX="$CXX_PPC64" CFLAGS="$CFLAGS $CFLAGS_PPC64" CPPFLAGS="$CPPFLAGS_PPC64" LDFLAGS="$LFLAGS_PPC64") || exit 2
    1.84 -fi
    1.85 -if test x$make_ppc64 = xyes; then
    1.86 -    (cd build/ppc64 && ls include && make -j$NJOB) || exit 3
    1.87 -fi
    1.88 -
    1.89 -#
    1.90  # Build the Intel 32-bit binary
    1.91  #
    1.92  if test x$configure_x86 = xyes; then