diff --git a/build/make/configure.sh b/build/make/configure.sh
index 1bb50af6d276c4675ba3bc9ac343ffdf46dff271..1279f781ab3a438582baada6525fe3cda6aeada1 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -901,8 +901,12 @@ process_common_toolchain() {
         [ "${AS##*/}" = nasm ] && add_asflags -Ox
         AS_SFX=.asm
         case  ${tgt_os} in
-            win*)
-                add_asflags -f win${bits}
+            win32)
+                add_asflags -f win32
+                enabled debug && add_asflags -g cv8
+            ;;
+            win64)
+                add_asflags -f x64
                 enabled debug && add_asflags -g cv8
             ;;
             linux*|solaris*)