gcc-fat.sh: SDL 1.2 won't build with the Mac OS X 10.11 SDK with < 10.7 compat. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Wed, 30 Mar 2016 13:30:19 -0400
branchSDL-1.2
changeset 10132000274d62b7e
parent 10131 8ab0633c9d43
child 10133 b1d2398f2655
gcc-fat.sh: SDL 1.2 won't build with the Mac OS X 10.11 SDK with < 10.7 compat.

Several deprecated APIs it uses are flat-out removed from the SDK now. We
already had preprocessor checks around them, so gcc-fat.sh just needs its
minimum OS compatibility bumped up to 10.7.

Leaving the deprecated code in place, however, in case someone wants to target
an ancient OS X by compiling with an older SDK.
build-scripts/g++-fat.sh
build-scripts/gcc-fat.sh
     1.1 --- a/build-scripts/g++-fat.sh	Wed Mar 30 11:23:28 2016 -0400
     1.2 +++ b/build-scripts/g++-fat.sh	Wed Mar 30 13:30:19 2016 -0400
     1.3 @@ -6,17 +6,17 @@
     1.4  
     1.5  DEVELOPER="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer"
     1.6  
     1.7 -# Intel 32-bit compiler flags (10.6 runtime compatibility)
     1.8 -GCC_COMPILE_X86="g++ -arch i386 -mmacosx-version-min=10.5 \
     1.9 +# Intel 32-bit compiler flags (10.7 runtime compatibility)
    1.10 +GCC_COMPILE_X86="g++ -arch i386 -mmacosx-version-min=10.7 \
    1.11  -I/usr/local/include"
    1.12  
    1.13 -GCC_LINK_X86="-mmacosx-version-min=10.5"
    1.14 +GCC_LINK_X86="-mmacosx-version-min=10.7"
    1.15  
    1.16 -# Intel 64-bit compiler flags (10.6 runtime compatibility)
    1.17 -GCC_COMPILE_X64="g++ -arch x86_64 -mmacosx-version-min=10.6 \
    1.18 +# Intel 64-bit compiler flags (10.7 runtime compatibility)
    1.19 +GCC_COMPILE_X64="g++ -arch x86_64 -mmacosx-version-min=10.7 \
    1.20  -I/usr/local/include"
    1.21  
    1.22 -GCC_LINK_X64="-mmacosx-version-min=10.6"
    1.23 +GCC_LINK_X64="-mmacosx-version-min=10.7"
    1.24  
    1.25  # Output both PowerPC and Intel object files
    1.26  args="$*"
     2.1 --- a/build-scripts/gcc-fat.sh	Wed Mar 30 11:23:28 2016 -0400
     2.2 +++ b/build-scripts/gcc-fat.sh	Wed Mar 30 13:30:19 2016 -0400
     2.3 @@ -6,18 +6,18 @@
     2.4  
     2.5  DEVELOPER="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer"
     2.6  
     2.7 -# Intel 32-bit compiler flags (10.5 runtime compatibility)
     2.8 -GCC_COMPILE_X86="gcc -arch i386 -mmacosx-version-min=10.5 \
     2.9 +# Intel 32-bit compiler flags (10.7 runtime compatibility)
    2.10 +GCC_COMPILE_X86="gcc -arch i386 -mmacosx-version-min=10.7 \
    2.11  -I/usr/local/include"
    2.12  
    2.13 -GCC_LINK_X86="-mmacosx-version-min=10.5"
    2.14 +GCC_LINK_X86="-mmacosx-version-min=10.7"
    2.15  
    2.16 -# Intel 64-bit compiler flags (10.6 runtime compatibility)
    2.17 -GCC_COMPILE_X64="gcc -arch x86_64 -mmacosx-version-min=10.6 \
    2.18 --DMAC_OS_X_VERSION_MIN_REQUIRED=1050 \
    2.19 +# Intel 64-bit compiler flags (10.7 runtime compatibility)
    2.20 +GCC_COMPILE_X64="gcc -arch x86_64 -mmacosx-version-min=10.7 \
    2.21 +-DMAC_OS_X_VERSION_MIN_REQUIRED=1070 \
    2.22  -I/usr/local/include"
    2.23  
    2.24 -GCC_LINK_X64="-mmacosx-version-min=10.6"
    2.25 +GCC_LINK_X64="-mmacosx-version-min=10.7"
    2.26  
    2.27  # Output both PowerPC and Intel object files
    2.28  args="$*"