configure: Move the .object_arch check to the right place
authorMartin Storsjö <martin@martin.st>
Thu, 5 Mar 2015 21:38:00 +0000 (23:38 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 7 Mar 2015 16:12:58 +0000 (18:12 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
configure

index 59438b8..0042246 100755 (executable)
--- a/configure
+++ b/configure
@@ -3870,11 +3870,6 @@ if enabled_any arm aarch64 || enabled_all ppc altivec && enabled asm; then
 .func test
 .endfunc
 EOF
-
-    # llvm's integrated assembler supports .object_arch from llvm 3.5
-    enabled arm && test "$objformat" = elf && check_as <<EOF && enable as_object_arch
-.object_arch armv4
-EOF
 fi
 
 check_inline_asm inline_asm_labels '"1:\n"'
@@ -3927,6 +3922,11 @@ ra .dn d0.i16
 .unreq ra
 EOF
 
+    # llvm's integrated assembler supports .object_arch from llvm 3.5
+    [ "$objformat" = elf ] && check_as <<EOF && enable as_object_arch
+.object_arch armv4
+EOF
+
     [ $target_os != win32 ] && enabled_all armv6t2 shared !pic && enable_weak_pic
 
 elif enabled mips; then