From 5b2e7c44fe6add7408bf615b1147c11e6f29a81d Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Mon, 7 Feb 2011 18:51:07 +0100 Subject: Fix android-configure.sh The latest patch broke the script because TARGET_ARCH is no longer defined as it should. Use the --arch=x86 option to force an x86 build (which currently fails though), arm being the default. Change-Id: Ie5f508b2caa972620787fc268f8dccc02df65f2b --- android-configure.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'android-configure.sh') diff --git a/android-configure.sh b/android-configure.sh index 9af5c3a..a36ece7 100755 --- a/android-configure.sh +++ b/android-configure.sh @@ -29,6 +29,8 @@ OPTION_MINGW=no HOST_CC=${CC:-gcc} OPTION_CC= +TARGET_ARCH=arm + for opt do optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` case "$opt" in @@ -63,6 +65,8 @@ for opt do ;; --static) OPTION_STATIC=yes ;; + --arch=*) TARGET_ARCH=$optarg + ;; *) echo "unknown option '$opt', use --help" exit 1 @@ -81,6 +85,7 @@ EOF echo " --help print this message" echo " --install=FILEPATH copy emulator executable to FILEPATH [$TARGETS]" echo " --cc=PATH specify C compiler [$HOST_CC]" + echo " --arch=ARM specify target architecture [$TARGET_ARCH]" echo " --sdl-config=FILE use specific sdl-config script [$SDL_CONFIG]" echo " --no-strip do not strip emulator executable" echo " --debug enable debug (-O0 -g) build" -- cgit v1.1