build-scripts/fatbuild.sh
branchSDL-1.2
changeset 4371 6f74b80cca1d
parent 4148 3e7f2edce658
child 4396 f5d3f7fa071d
     1.1 --- a/build-scripts/fatbuild.sh	Thu Oct 22 04:53:44 2009 +0000
     1.2 +++ b/build-scripts/fatbuild.sh	Wed Oct 28 19:42:16 2009 +0000
     1.3 @@ -70,6 +70,17 @@
     1.4  CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \
     1.5  --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
     1.6  
     1.7 +# They changed this to "darwin10" in Xcode 3.2 (Snow Leopard).
     1.8 +GCCUSRPATH="$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1"
     1.9 +if [ ! -d "$GCCUSRPATH" ]; then
    1.10 +    GCCUSRPATH="$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1"
    1.11 +fi
    1.12 +
    1.13 +if [ ! -d "$GCCUSRPATH" ]; then
    1.14 +    echo "Couldn't find any GCC usr path"
    1.15 +    exit 1
    1.16 +fi
    1.17 +
    1.18  # Intel compiler flags
    1.19  CC_X86="gcc-4.0 -arch i386"
    1.20  CXX_X86="g++-4.0 -arch i386"
    1.21 @@ -77,12 +88,12 @@
    1.22  CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
    1.23  -nostdinc \
    1.24  -F$SDK_PATH/MacOSX10.4u.sdk/System/Library/Frameworks \
    1.25 --I$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/include \
    1.26 +-I$GCCUSRPATH/include \
    1.27  -isystem $SDK_PATH/MacOSX10.4u.sdk/usr/include"
    1.28  
    1.29  # Intel linker flags
    1.30  LFLAGS_X86="-Wl,-headerpad_max_install_names -arch i386 -mmacosx-version-min=10.4 \
    1.31 --L$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1 \
    1.32 +-L$GCCUSRPATH \
    1.33  -Wl,-syslibroot,$SDK_PATH/MacOSX10.4u.sdk"
    1.34  
    1.35  #