]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
need -fno-reorder-blocks on Darwin
[xonotic/xonotic.git] / all
diff --git a/all b/all
index 93edeb54da7feda71f7ad559162d4f2c78481f74..15704071284f798394e08ff5e1f241e4c23ce6ad 100755 (executable)
--- a/all
+++ b/all
@@ -801,6 +801,9 @@ case "$cmd" in
                                -r)
                                        debug=release
                                        export CC="$CC -g -mtune=native -march=native"
+                                       if [ -n "$WE_HATE_OUR_USERS" ]; then
+                                               export CC="$CC -fno-common"
+                                       fi
                                        shift
                                        ;;
                                *)
@@ -821,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