Tweaked fatbuild.sh so it works with install_name_tool. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Fri, 25 Jul 2008 10:52:10 +0000
branchSDL-1.2
changeset 4148 3e7f2edce658
parent 4147 6bdec986f2f6
child 4149 2325dd996f73
Tweaked fatbuild.sh so it works with install_name_tool.
build-scripts/fatbuild.sh
--- a/build-scripts/fatbuild.sh	Sat Jul 19 11:54:55 2008 +0000
+++ b/build-scripts/fatbuild.sh	Fri Jul 25 10:52:10 2008 +0000
@@ -35,7 +35,7 @@
 -isystem $SDK_PATH/MacOSX10.2.8.sdk/usr/include"
 
     # PowerPC linker flags 
-    LFLAGS_PPC="-arch ppc \
+    LFLAGS_PPC="-Wl,-headerpad_max_install_names -arch ppc \
 -L$SDK_PATH/MacOSX10.2.8.sdk/usr/lib/gcc/darwin/3.3 \
 -F$SDK_PATH/MacOSX10.2.8.sdk/System/Library/Frameworks \
 -Wl,-syslibroot,$SDK_PATH/MacOSX10.2.8.sdk"
@@ -58,7 +58,7 @@
 -isystem $SDK_PATH/MacOSX10.3.9.sdk/usr/include"
 
     # PowerPC linker flags
-    LFLAGS_PPC="-arch ppc -mmacosx-version-min=10.3 \
+    LFLAGS_PPC="-Wl,-headerpad_max_install_names -arch ppc -mmacosx-version-min=10.3 \
 -L$SDK_PATH/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-darwin9/4.0.1 \
 -F$SDK_PATH/MacOSX10.3.9.sdk/System/Library/Frameworks \
 -Wl,-syslibroot,$SDK_PATH/MacOSX10.3.9.sdk"
@@ -81,7 +81,7 @@
 -isystem $SDK_PATH/MacOSX10.4u.sdk/usr/include"
 
 # Intel linker flags
-LFLAGS_X86="-arch i386 -mmacosx-version-min=10.4 \
+LFLAGS_X86="-Wl,-headerpad_max_install_names -arch i386 -mmacosx-version-min=10.4 \
 -L$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1 \
 -Wl,-syslibroot,$SDK_PATH/MacOSX10.4u.sdk"