need -fno-reorder-blocks on Darwin
[xonotic/xonotic.git] / all
diff --git a/all b/all
index ec4ad52e74f475be21ed748f50b1e9796b68335d..15704071284f798394e08ff5e1f241e4c23ce6ad 100755 (executable)
--- a/all
+++ b/all
@@ -824,7 +824,7 @@ case "$cmd" in
                                        TARGETS="sv-$debug sdl-$debug"
                                        ;;
                        esac
-                       export CC="$CC -I$PWD/misc/buildfiles/osx/Xonotic-SDL.app/Contents/Frameworks/SDL.framework/Headers -F$PWD/misc/buildfiles/osx/Xonotic-SDL.app/Contents/Frameworks"
+                       export CC="$CC -fno-reorder-blocks -I$PWD/misc/buildfiles/osx/Xonotic-SDL.app/Contents/Frameworks/SDL.framework/Headers -F$PWD/misc/buildfiles/osx/Xonotic-SDL.app/Contents/Frameworks"
                else
                        TARGETS="sv-$debug cl-$debug sdl-$debug"
                fi