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 10124 000274d62b7e
parent 10123 8ab0633c9d43
child 10125 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
--- a/build-scripts/g++-fat.sh	Wed Mar 30 11:23:28 2016 -0400
+++ b/build-scripts/g++-fat.sh	Wed Mar 30 13:30:19 2016 -0400
@@ -6,17 +6,17 @@
 
 DEVELOPER="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer"
 
-# Intel 32-bit compiler flags (10.6 runtime compatibility)
-GCC_COMPILE_X86="g++ -arch i386 -mmacosx-version-min=10.5 \
+# Intel 32-bit compiler flags (10.7 runtime compatibility)
+GCC_COMPILE_X86="g++ -arch i386 -mmacosx-version-min=10.7 \
 -I/usr/local/include"
 
-GCC_LINK_X86="-mmacosx-version-min=10.5"
+GCC_LINK_X86="-mmacosx-version-min=10.7"
 
-# Intel 64-bit compiler flags (10.6 runtime compatibility)
-GCC_COMPILE_X64="g++ -arch x86_64 -mmacosx-version-min=10.6 \
+# Intel 64-bit compiler flags (10.7 runtime compatibility)
+GCC_COMPILE_X64="g++ -arch x86_64 -mmacosx-version-min=10.7 \
 -I/usr/local/include"
 
-GCC_LINK_X64="-mmacosx-version-min=10.6"
+GCC_LINK_X64="-mmacosx-version-min=10.7"
 
 # Output both PowerPC and Intel object files
 args="$*"
--- a/build-scripts/gcc-fat.sh	Wed Mar 30 11:23:28 2016 -0400
+++ b/build-scripts/gcc-fat.sh	Wed Mar 30 13:30:19 2016 -0400
@@ -6,18 +6,18 @@
 
 DEVELOPER="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer"
 
-# Intel 32-bit compiler flags (10.5 runtime compatibility)
-GCC_COMPILE_X86="gcc -arch i386 -mmacosx-version-min=10.5 \
+# Intel 32-bit compiler flags (10.7 runtime compatibility)
+GCC_COMPILE_X86="gcc -arch i386 -mmacosx-version-min=10.7 \
 -I/usr/local/include"
 
-GCC_LINK_X86="-mmacosx-version-min=10.5"
+GCC_LINK_X86="-mmacosx-version-min=10.7"
 
-# Intel 64-bit compiler flags (10.6 runtime compatibility)
-GCC_COMPILE_X64="gcc -arch x86_64 -mmacosx-version-min=10.6 \
--DMAC_OS_X_VERSION_MIN_REQUIRED=1050 \
+# Intel 64-bit compiler flags (10.7 runtime compatibility)
+GCC_COMPILE_X64="gcc -arch x86_64 -mmacosx-version-min=10.7 \
+-DMAC_OS_X_VERSION_MIN_REQUIRED=1070 \
 -I/usr/local/include"
 
-GCC_LINK_X64="-mmacosx-version-min=10.6"
+GCC_LINK_X64="-mmacosx-version-min=10.7"
 
 # Output both PowerPC and Intel object files
 args="$*"