summaryrefslogtreecommitdiff
path: root/build-scripts/fatbuild.sh
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2007-12-28 20:42:06 +0000
committerSam Lantinga <slouken@libsdl.org>2007-12-28 20:42:06 +0000
commit19682ed1d319c325683a5edf1e40f9e12ba6c070 (patch)
treefcbb365ade783f762e424bb9334f76a39f22106d /build-scripts/fatbuild.sh
parent5678f51d85726a39cb136364b05d9ac5ab533631 (diff)
Fixed fatbuild.sh script for building on Mac OS X 10.5
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402657
Diffstat (limited to 'build-scripts/fatbuild.sh')
-rwxr-xr-xbuild-scripts/fatbuild.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/build-scripts/fatbuild.sh b/build-scripts/fatbuild.sh
index bf8916d9..3816168d 100755
--- a/build-scripts/fatbuild.sh
+++ b/build-scripts/fatbuild.sh
@@ -10,24 +10,24 @@ NJOB=$NCPU
# Generic, cross-platform CFLAGS you always want go here.
CFLAGS="-O3 -g -pipe"
-# PowerPC configure flags (10.2 runtime compatibility)
+# PowerPC configure flags (10.3 runtime compatibility)
# We dynamically load X11, so using the system X11 headers is fine.
CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
# PowerPC compiler flags
-CC_PPC="gcc-3.3 -arch ppc"
-CXX_PPC="g++-3.3 -arch ppc"
+CC_PPC="gcc-4.0 -arch ppc"
+CXX_PPC="g++-4.0 -arch ppc"
CFLAGS_PPC=""
CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1030 \
-nostdinc \
-F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks \
--I/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 \
+-I/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/include \
-isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include"
-# PowerPC linker flags
-LFLAGS_PPC="-arch ppc \
--L/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/darwin/3.3 \
+# PowerPC linker flags
+LFLAGS_PPC="-arch ppc -mmacosx-version-min=10.3 \
+-L/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-darwin9/4.0.1 \
-F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks \
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk"
@@ -43,12 +43,12 @@ CFLAGS_X86="-mmacosx-version-min=10.4"
CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
-nostdinc \
-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
--I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1/include \
+-I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/include \
-isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include"
# Intel linker flags
LFLAGS_X86="-arch i386 -mmacosx-version-min=10.4 \
--L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1 \
+-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1 \
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
#