./all compile agl: set -arch i386

This commit is contained in:
Rudolf Polzer 2010-10-31 14:20:55 +01:00
parent 08b467d54d
commit c35462de02

10
all
View File

@ -704,6 +704,7 @@ case "$cmd" in
cleanqc=false cleanqc=false
compiled0=false compiled0=false
debug=debug debug=debug
snowleopardhack=false
if [ -z "$CC" ]; then if [ -z "$CC" ]; then
export CC="gcc -DSUPPORTIPV6" export CC="gcc -DSUPPORTIPV6"
fi fi
@ -739,6 +740,7 @@ case "$cmd" in
;; ;;
*) *)
# AGL cannot be compiled on systems with a kernel > 10.x (Snow Leopard) # AGL cannot be compiled on systems with a kernel > 10.x (Snow Leopard)
snowleopardhack=true
TARGETS="sv-$debug sdl-$debug" TARGETS="sv-$debug sdl-$debug"
;; ;;
esac esac
@ -760,7 +762,13 @@ case "$cmd" in
sdl) sdl)
TARGETS="$TARGETS sdl-debug" 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" TARGETS="$TARGETS cl-debug"
;; ;;
dedicated) dedicated)