Updated fatbuild.sh to build for 10.4u SDK
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403775
This commit is contained in:
parent
707116c0c0
commit
b9d44209a4
1 changed files with 13 additions and 14 deletions
|
@ -5,12 +5,11 @@
|
||||||
# Number of CPUs (for make -j)
|
# Number of CPUs (for make -j)
|
||||||
NCPU=`sysctl -n hw.ncpu`
|
NCPU=`sysctl -n hw.ncpu`
|
||||||
NJOB=$NCPU
|
NJOB=$NCPU
|
||||||
#NJOB=`expr $NCPU + 1`
|
|
||||||
|
|
||||||
# Generic, cross-platform CFLAGS you always want go here.
|
# Generic, cross-platform CFLAGS you always want go here.
|
||||||
CFLAGS="-O3 -g -pipe"
|
CFLAGS="-O3 -g -pipe"
|
||||||
|
|
||||||
# PowerPC configure flags (10.3 runtime compatibility)
|
# PowerPC configure flags (10.4 runtime compatibility)
|
||||||
# We dynamically load X11, so using the system X11 headers is fine.
|
# We dynamically load X11, so using the system X11 headers is fine.
|
||||||
CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
|
CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
|
||||||
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
|
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
|
||||||
|
@ -19,17 +18,17 @@ CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \
|
||||||
CC_PPC="gcc-4.0 -arch ppc"
|
CC_PPC="gcc-4.0 -arch ppc"
|
||||||
CXX_PPC="g++-4.0 -arch ppc"
|
CXX_PPC="g++-4.0 -arch ppc"
|
||||||
CFLAGS_PPC=""
|
CFLAGS_PPC=""
|
||||||
CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1030 \
|
CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
|
||||||
-nostdinc \
|
-nostdinc \
|
||||||
-F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks \
|
-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
|
||||||
-I/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/include \
|
-I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include \
|
||||||
-isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include"
|
-isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include"
|
||||||
|
|
||||||
# PowerPC linker flags
|
# PowerPC linker flags
|
||||||
LFLAGS_PPC="-arch ppc -mmacosx-version-min=10.3 \
|
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.4u.sdk/System/Library/Frameworks \
|
||||||
-F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks \
|
-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1 \
|
||||||
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk"
|
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
|
||||||
|
|
||||||
# Intel configure flags (10.4 runtime compatibility)
|
# Intel configure flags (10.4 runtime compatibility)
|
||||||
# We dynamically load X11, so using the system X11 headers is fine.
|
# We dynamically load X11, so using the system X11 headers is fine.
|
||||||
|
@ -43,12 +42,13 @@ CFLAGS_X86="-mmacosx-version-min=10.4"
|
||||||
CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
|
CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
|
||||||
-nostdinc \
|
-nostdinc \
|
||||||
-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
|
-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
|
||||||
-I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/include \
|
-I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/include \
|
||||||
-isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include"
|
-isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include"
|
||||||
|
|
||||||
# Intel linker flags
|
# Intel linker flags
|
||||||
LFLAGS_X86="-arch i386 -mmacosx-version-min=10.4 \
|
LFLAGS_X86="-arch i386 -mmacosx-version-min=10.4 \
|
||||||
-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1 \
|
-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
|
||||||
|
-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1 \
|
||||||
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
|
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -192,9 +192,8 @@ if test x$merge = xyes; then
|
||||||
output=.libs
|
output=.libs
|
||||||
sh $auxdir/mkinstalldirs build/$output
|
sh $auxdir/mkinstalldirs build/$output
|
||||||
cd build
|
cd build
|
||||||
target=`find . -mindepth 3 -type f -name '*.dylib' | head -1 | sed 's|.*/||'`
|
target=`find . -mindepth 4 -maxdepth 4 -type f -name '*.dylib' | head -1 | sed 's|.*/||'`
|
||||||
(lipo -create -o $output/$target `find . -mindepth 3 -type f -name "*.dylib"` &&
|
(lipo -create -o $output/$target `find . -mindepth 4 -maxdepth 4 -type f -name "*.dylib"` &&
|
||||||
ln -sf $target $output/libSDL-1.2.0.dylib &&
|
|
||||||
ln -sf $target $output/libSDL.dylib &&
|
ln -sf $target $output/libSDL.dylib &&
|
||||||
lipo -create -o $output/libSDL.a */build/.libs/libSDL.a &&
|
lipo -create -o $output/libSDL.a */build/.libs/libSDL.a &&
|
||||||
cp $native_path/build/.libs/libSDL.la $output &&
|
cp $native_path/build/.libs/libSDL.la $output &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue