comparison build-scripts/fatbuild.sh @ 4104:e3945f84427f SDL-1.2

Fixed fatbuild.sh script for building on Mac OS X 10.5 The minimum PPC SDK is 10.3.9
author Sam Lantinga <slouken@libsdl.org>
date Fri, 28 Dec 2007 20:39:31 +0000
parents 9e454eb693a5
children 1bc3d3b2cde1
comparison
equal deleted inserted replaced
4103:9df8136abec0 4104:e3945f84427f
8 #NJOB=`expr $NCPU + 1` 8 #NJOB=`expr $NCPU + 1`
9 9
10 # Generic, cross-platform CFLAGS you always want go here. 10 # Generic, cross-platform CFLAGS you always want go here.
11 CFLAGS="-O3 -g -pipe" 11 CFLAGS="-O3 -g -pipe"
12 12
13 # PowerPC configure flags (10.2 runtime compatibility) 13 # PowerPC configure flags (10.3 runtime compatibility)
14 # We dynamically load X11, so using the system X11 headers is fine. 14 # We dynamically load X11, so using the system X11 headers is fine.
15 CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \ 15 CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
16 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib" 16 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
17 17
18 # PowerPC compiler flags 18 # PowerPC compiler flags
19 CC_PPC="gcc-3.3 -arch ppc" 19 CC_PPC="gcc-4.0 -arch ppc"
20 CXX_PPC="g++-3.3 -arch ppc" 20 CXX_PPC="g++-4.0 -arch ppc"
21 CFLAGS_PPC="" 21 CFLAGS_PPC=""
22 CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 \ 22 CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1030 \
23 -nostdinc \ 23 -nostdinc \
24 -F/Developer/SDKs/MacOSX10.2.8.sdk/System/Library/Frameworks \ 24 -F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks \
25 -I/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/gcc/darwin/3.3 \ 25 -I/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/include \
26 -isystem /Developer/SDKs/MacOSX10.2.8.sdk/usr/include" 26 -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include"
27 27
28 # PowerPC linker flags 28 # PowerPC linker flags
29 LFLAGS_PPC="-arch ppc \ 29 LFLAGS_PPC="-arch ppc -mmacosx-version-min=10.3 \
30 -L/Developer/SDKs/MacOSX10.2.8.sdk/usr/lib/gcc/darwin/3.3 \ 30 -L/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-darwin9/4.0.1 \
31 -F/Developer/SDKs/MacOSX10.2.8.sdk/System/Library/Frameworks \ 31 -F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks \
32 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.2.8.sdk" 32 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk"
33 33
34 # Intel configure flags (10.4 runtime compatibility) 34 # Intel configure flags (10.4 runtime compatibility)
35 # We dynamically load X11, so using the system X11 headers is fine. 35 # We dynamically load X11, so using the system X11 headers is fine.
36 CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \ 36 CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \
37 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib" 37 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
41 CXX_X86="g++-4.0 -arch i386" 41 CXX_X86="g++-4.0 -arch i386"
42 CFLAGS_X86="-mmacosx-version-min=10.4" 42 CFLAGS_X86="-mmacosx-version-min=10.4"
43 CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \ 43 CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
44 -nostdinc \ 44 -nostdinc \
45 -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \ 45 -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
46 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1/include \ 46 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/include \
47 -isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include" 47 -isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include"
48 48
49 # Intel linker flags 49 # Intel linker flags
50 LFLAGS_X86="-arch i386 -mmacosx-version-min=10.4 \ 50 LFLAGS_X86="-arch i386 -mmacosx-version-min=10.4 \
51 -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1 \ 51 -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1 \
52 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" 52 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
53 53
54 # 54 #
55 # Find the configure script 55 # Find the configure script
56 # 56 #