From: André Hentschel Subject: [3/4] configure: Check for Thumb2 on ARM and compile always in ARM mode Message-Id: <4F9D99EF.2010506@dawncrow.de> Date: Sun, 29 Apr 2012 21:43:43 +0200 This makes sure we have a defined base and the new winebuild code can be used --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index efc03af..18da8c5 100644 --- a/configure.ac +++ b/configure.ac @@ -168,6 +168,14 @@ case $host in AC_SUBST(TARGETFLAGS,"-m64") fi ;; + arm*) + AC_MSG_CHECKING([whether $CC supports Thumb2]) + WINE_TRY_ASM_LINK([".syntax unified\n.thumb\nb.w ac_test\n.arm"],[int ac_test(int i) { return i; }], [if (ac_test(1)) return 1], + [AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no]) + AC_MSG_ERROR([You need a target with Thumb2 support to build Wine for ARM.])]) + CFLAGS="$CFLAGS -marm" + ;; *-mingw32*|*-cygwin*) enable_win16=${enable_win16:-no} CFLAGS="$CFLAGS -D_WIN32" -- Best Regards, André Hentschel