[Commits] SDL: gcc-fat.sh: SDL 1.2 won't build with the Mac OS X 10.11 SDK...

libsdl.org revision control commits-owner at libsdl.org
Wed Mar 30 10:31:06 PDT 2016


details:   https://hg.libsdl.org/SDL/rev/000274d62b7e
changeset: 10132:000274d62b7e
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Wed Mar 30 13:30:19 2016 -0400
description:
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.

diffstat:

 build-scripts/g++-fat.sh |  12 ++++++------
 build-scripts/gcc-fat.sh |  14 +++++++-------
 2 files changed, 13 insertions(+), 13 deletions(-)

diffs (56 lines):

diff -r 8ab0633c9d43 -r 000274d62b7e build-scripts/g++-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="$*"
diff -r 8ab0633c9d43 -r 000274d62b7e build-scripts/gcc-fat.sh
--- 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="$*"


More information about the commits mailing list