diff options
| author | dhewg | 2011-03-10 19:24:28 +0100 | 
|---|---|---|
| committer | dhewg | 2011-03-10 21:17:59 +0100 | 
| commit | bf62098dd5f114b6cd82342ce9042d6ff9305d36 (patch) | |
| tree | bc1b44d2f1858578bf8fc320142e1b859e17abce | |
| parent | 24df295328dc118bd1dcf03abaf9c68c665a7ab6 (diff) | |
| download | scummvm-rg350-bf62098dd5f114b6cd82342ce9042d6ff9305d36.tar.gz scummvm-rg350-bf62098dd5f114b6cd82342ce9042d6ff9305d36.tar.bz2 scummvm-rg350-bf62098dd5f114b6cd82342ce9042d6ff9305d36.zip | |
CONFIGURE: Add support for Android's armeabi-v7a
Extended ABI with Thumb-2 and VFP hardware FPU instructions
| -rwxr-xr-x | configure | 14 | 
1 files changed, 11 insertions, 3 deletions
| @@ -976,7 +976,7 @@ get_system_exe_extension $guessed_host  NATIVEEXEEXT=$_exeext  case $_host in -android) +android | android-v7a)  	_host_os=android  	_host_cpu=arm  	_host_alias=arm-linux-androideabi @@ -1504,8 +1504,16 @@ case $_host_os in  		add_line_to_config_mk 'AMIGAOS = 1'  		;;  	android) +		case $_host in +			android) +				CXXFLAGS="$CXXFLAGS -march=armv5te -mtune=xscale -msoft-float" +				;; +			android-v7a) +				CXXFLAGS="$CXXFLAGS -march=armv7-a -mfloat-abi=softfp -mfpu=vfp" +				LDFLAGS="$LDFLAGS -Wl,--fix-cortex-a8" +				;; +		esac  		CXXFLAGS="$CXXFLAGS --sysroot=$ANDROID_NDK/platforms/android-4/arch-arm" -		CXXFLAGS="$CXXFLAGS -march=armv5te -mtune=xscale -msoft-float"  		CXXFLAGS="$CXXFLAGS -fpic -ffunction-sections -funwind-tables"  		if test "$_release_build" = yes; then  			CXXFLAGS="$CXXFLAGS	-fomit-frame-pointer -fstrict-aliasing" @@ -1668,7 +1676,7 @@ if test -n "$_host"; then  	# Cross-compiling mode - add your target here if needed  	echo "Cross-compiling to $_host"  	case "$_host" in -		android) +		android | android-v7a)  			_unix=yes  			_need_memalign=yes  			# we link a .so as default | 
