diff --git a/configure b/configure
index ab71cb3e199ec6250c012cb36bc90af90441f262..d4dfe32453e3a30261f71e1b94653557679bf5f8 100755
--- a/configure
+++ b/configure
@@ -2091,6 +2091,8 @@ od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
 
 if enabled arm; then
 
+    check_cflags -marm
+
     check_ld <<EOF && enable vfp_args
 __asm__ (".eabi_attribute 28, 1");
 int main(void) { return 0; }