[build] Added support for ARM64 Android cross-compilation.
authorJoão Matos <joao@tritao.eu>
Fri, 28 Nov 2014 16:50:21 +0000 (16:50 +0000)
committerJoão Matos <joao@tritao.eu>
Fri, 28 Nov 2014 17:07:05 +0000 (17:07 +0000)
configure.ac

index 979f4a18db6d63bd37c4ecd48fc46f6f00f55152..2e3078be9a4066b3fca12fbc465cc38d3170629c 100644 (file)
@@ -2796,7 +2796,18 @@ if test "x$host" != "x$target"; then
                # in mono-compiler.h            
                with_tls=pthread
                target_mach=no
-               ;;                      
+               ;;
+   aarch64*-linux-*)
+               TARGET=ARM64;
+               arch_target=arm64;
+               AC_DEFINE(TARGET_ARM64, 1, [...])
+               AC_DEFINE(TARGET_ANDROID, 1, [...])
+               CPPFLAGS="$CPPFLAGS"
+               # Can't use tls, since it depends on the runtime detection of tls offsets
+               # in mono-compiler.h
+               with_tls=pthread
+               target_mach=no
+               ;;
        aarch64-*)
                TARGET=ARM64
                ;;