build-scripts/fatbuild.sh
branchSDL-1.2
changeset 4371 6f74b80cca1d
parent 4148 3e7f2edce658
child 4396 f5d3f7fa071d
equal deleted inserted replaced
4370:8d67936e32ec 4371:6f74b80cca1d
    68 # Intel configure flags (10.4 runtime compatibility)
    68 # Intel configure flags (10.4 runtime compatibility)
    69 # We dynamically load X11, so using the system X11 headers is fine.
    69 # We dynamically load X11, so using the system X11 headers is fine.
    70 CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \
    70 CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \
    71 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
    71 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
    72 
    72 
       
    73 # They changed this to "darwin10" in Xcode 3.2 (Snow Leopard).
       
    74 GCCUSRPATH="$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1"
       
    75 if [ ! -d "$GCCUSRPATH" ]; then
       
    76     GCCUSRPATH="$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1"
       
    77 fi
       
    78 
       
    79 if [ ! -d "$GCCUSRPATH" ]; then
       
    80     echo "Couldn't find any GCC usr path"
       
    81     exit 1
       
    82 fi
       
    83 
    73 # Intel compiler flags
    84 # Intel compiler flags
    74 CC_X86="gcc-4.0 -arch i386"
    85 CC_X86="gcc-4.0 -arch i386"
    75 CXX_X86="g++-4.0 -arch i386"
    86 CXX_X86="g++-4.0 -arch i386"
    76 CFLAGS_X86="-mmacosx-version-min=10.4"
    87 CFLAGS_X86="-mmacosx-version-min=10.4"
    77 CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
    88 CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
    78 -nostdinc \
    89 -nostdinc \
    79 -F$SDK_PATH/MacOSX10.4u.sdk/System/Library/Frameworks \
    90 -F$SDK_PATH/MacOSX10.4u.sdk/System/Library/Frameworks \
    80 -I$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/include \
    91 -I$GCCUSRPATH/include \
    81 -isystem $SDK_PATH/MacOSX10.4u.sdk/usr/include"
    92 -isystem $SDK_PATH/MacOSX10.4u.sdk/usr/include"
    82 
    93 
    83 # Intel linker flags
    94 # Intel linker flags
    84 LFLAGS_X86="-Wl,-headerpad_max_install_names -arch i386 -mmacosx-version-min=10.4 \
    95 LFLAGS_X86="-Wl,-headerpad_max_install_names -arch i386 -mmacosx-version-min=10.4 \
    85 -L$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1 \
    96 -L$GCCUSRPATH \
    86 -Wl,-syslibroot,$SDK_PATH/MacOSX10.4u.sdk"
    97 -Wl,-syslibroot,$SDK_PATH/MacOSX10.4u.sdk"
    87 
    98 
    88 #
    99 #
    89 # Find the configure script
   100 # Find the configure script
    90 #
   101 #