Misc fixes

1. Fix issue when APP_PLATFORM specified in env. var can't be adjusted
2. revert linux-x86 host compiler to the original glibc2.7
   (when __USE_OLD_LINUX_HOST_GCC=yes) to generate binaries run on server
   with very old libc.so
3. Fix issue about run-tests.sh --abi=armeabi-v7a-hard
4. Add 4.9 to some BROKEN_RUN
5. LOCAL_CPPFLAGS += -UNDEBUG for libc++ test becasue there are real work
   done inside assert (bad, bad, bad) for some tests.

Change-Id: If9f507303186ba85fc9ed0962732d027a2dd246e
Auto-config platform for all 64-bit ABIs to android-20

Change-Id: Ia5ca1612efd3bc344ba494b4866dcbeff3fd7b38
Fix x86_64 standalone toolchain

x86_64 compiler is multib.  by default (-m64) it looks for sysroot/usr/lib64

Change-Id: Ice8bbbdccdd9709bdb33fa6c9612423318e06dc4
Merge "Misc fixes"
Merge "Auto-config platform for all 64-bit ABIs to android-20"
Merge "Fix x86_64 standalone toolchain"
Support armeabi-v7a-hard when building C++ libraries.

This modifies the build-cxx-stl.sh and build-gnu-libstdc++.sh scripts
to build armeabi-v7a-hard variants of prebuilt libraries and
install them to the correct location.

IMPORTANT NOTE:
  This assumes that the libraries will _always_ be linked against
  libm_hard.a.

  Given that the only reason to use this ABI is to have increased
  performance, it makes little sense to use the system math library
  which forces the softfp interface.

Change-Id: I85daa003eeb7fe80dcc36ab865df05b6479ccd1c

Conflicts:
	build/tools/build-gnu-libstdc++.sh
	build/tools/prebuilt-common.sh
make-standalone-toolchain.sh: Add --abi=<name> option.

This adds a new option to make-standalone-toolchain that allows
one to specify the target CPU ABI, this means that:

- Using --abi=armeabi-v7a generates a standalone toolchain that
  generates proper ARMv7-A binaries by default.

- Using --abi=armeabi-v7a-hard generates a standalone toolchain
  that generates ARMv7-A binaries compiled in "hard" floating-point
  mode. This includes a copy of the math library in the final
  sysroot (and automatically defining _NDK_MATH_NO_SOFTP=1).

This shouldn't change anything for other ABIs. --arch is still
supported but deprecated, if only --toolchain is used, the default
ARM abi is still 'armeabi'.

Change-Id: I902d26f0a5feb2c573afe930d817e5324f498a9a

Conflicts:
	build/tools/make-standalone-toolchain.sh
build-host-gcc.sh: Support building for android-* systems.

This is still very experimental. For now, only GCC 4.6 compiles and runs.

Usage example:

  build/tools/download-toolchain-sources.sh /tmp/ndk-$USER/src
  build/tools/build-standalone-toolchain.sh --install-dir=/tmp/ndk-arm
  PATH=$PATH:/tmp/ndk-arm/bin
  build/tools/build-host-gcc.sh \
      --toolchain-src-dir=/tmp/ndk-$USR/src \
      --systems=android-armeabi arm-linux-androideabi-4.6

  The resulting toolchain binaries are placed under:

     toolchains/<name>/prebuilt/android-armeabi/

  Which can be install to a device, e.g.:

     adb push toolchains/arm-linux-androideabi-4.6/prebuilt/android-armeabi /data/local/tmp/gcc-4.6
     adb shell /data/local/tmp/gcc-4.6/bin/gcc -v

TODO: Get rid of the requirement for the host cross-toolchain in your path when invoking
      the script (it will always rebuild it anyway, but does not use it for now).

BUG=NONE

Change-Id: I3256d8bdb54b76a0c83a5b91e2a2910ef900301c
Define MB_CUR_MAX and MB_LEN_MAX to 4

The support library supports UTF-8 as the only encoding.

Change-Id: I5a5956c50a7cff13938073c78069964001a5c730
Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
Merge branch 'master' of https://android.googlesource.com/platform/ndk into 4.4.2