Add ARM cross compilation target to configure.in.
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 7 Nov 2012 23:19:05 +0000 (18:19 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 9 Nov 2012 18:09:12 +0000 (13:09 -0500)
configure.in

index efb7bcb51ef93ec7c460542b01aa6e790be53572..d63efa58a36214686f838f0f77d8dfe09467d187 100644 (file)
@@ -2462,6 +2462,19 @@ if test "x$host" != "x$target"; then
    AC_DEFINE(MONO_CROSS_COMPILE,1,[The runtime is compiled for cross-compiling mode])
    enable_mcs_build=no
    case "$target" in
+   arm*-darwin*)
+               TARGET=ARM;
+               arch_target=arm;
+               ACCESS_UNALIGNED="no"
+               JIT_SUPPORTED=yes
+               CPPFLAGS="$CPPFLAGS -DARM_FPU_VFP=1 -D__ARM_EABI__ -DHAVE_ARMV6=1"
+               jit_wanted=true
+               # Can't use tls, since it depends on the runtime detection of tls offsets
+               # in mono-compiler.h
+               with_tls=pthread
+
+               AC_DEFINE(MONO_CROSS_COMPILE,1,[The runtime is compiled for cross-compiling mode])
+               ;;
    powerpc64-ps3-linux-gnu)
                TARGET=POWERPC64
                arch_target=powerpc64