Commit 74518c8d authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

configure: Downgrade the Thumb2 requirement to Thumb on ARM.

parent e7730053
...@@ -4142,15 +4142,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ...@@ -4142,15 +4142,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
;; ;;
arm*) arm*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb2" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
$as_echo_n "checking whether $CC supports Thumb2... " >&6; } $as_echo_n "checking whether $CC supports Thumb... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
int ac_test(int i) { return i; } int ac_test(int i) { return i; }
int int
main () main ()
{ {
asm(".syntax unified\n.thumb\nb.w ac_test\n.arm"); if (ac_test(1)) return 1 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
; ;
return 0; return 0;
} }
...@@ -4161,7 +4161,7 @@ $as_echo "yes" >&6; } ...@@ -4161,7 +4161,7 @@ $as_echo "yes" >&6; }
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; } $as_echo "no" >&6; }
as_fn_error $? "You need a target with Thumb2 support to build Wine for ARM." "$LINENO" 5 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
fi fi
rm -f core conftest.err conftest.$ac_objext \ rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext conftest$ac_exeext conftest.$ac_ext
......
...@@ -169,11 +169,11 @@ case $host in ...@@ -169,11 +169,11 @@ case $host in
fi fi
;; ;;
arm*) arm*)
AC_MSG_CHECKING([whether $CC supports Thumb2]) AC_MSG_CHECKING([whether $CC supports Thumb])
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], WINE_TRY_ASM_LINK([".thumb\nblx ac_test\n.arm"],[int ac_test(int i) { return i; }], [if (ac_test(1)) return 1],
[AC_MSG_RESULT([yes])], [AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no]) [AC_MSG_RESULT([no])
AC_MSG_ERROR([You need a target with Thumb2 support to build Wine for ARM.])]) AC_MSG_ERROR([You need a target with Thumb support to build Wine for ARM.])])
CFLAGS="$CFLAGS -marm" CFLAGS="$CFLAGS -marm"
;; ;;
*-mingw32*|*-cygwin*) *-mingw32*|*-cygwin*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment