From: Rudolf Polzer Date: Sun, 31 Oct 2010 13:20:55 +0000 (+0100) Subject: ./all compile agl: set -arch i386 X-Git-Tag: xonotic-v0.1.0preview~103 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c35462de02bdb8be22acbbe082f248b60d26b51d;p=xonotic%2Fxonotic.git ./all compile agl: set -arch i386 --- diff --git a/all b/all index 1e4f651b..b73d5f1b 100755 --- a/all +++ b/all @@ -704,6 +704,7 @@ case "$cmd" in cleanqc=false compiled0=false debug=debug + snowleopardhack=false if [ -z "$CC" ]; then export CC="gcc -DSUPPORTIPV6" fi @@ -739,6 +740,7 @@ case "$cmd" in ;; *) # AGL cannot be compiled on systems with a kernel > 10.x (Snow Leopard) + snowleopardhack=true TARGETS="sv-$debug sdl-$debug" ;; esac @@ -760,7 +762,13 @@ case "$cmd" in sdl) TARGETS="$TARGETS sdl-debug" ;; - glx|agl|wgl) + agl) + TARGETS="$TARGETS cl-debug" + if $snowleopardhack; then + export CC="$CC -arch i386" + fi + ;; + glx|wgl) TARGETS="$TARGETS cl-debug" ;; dedicated)