diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure index 117479ca3085..f4d557ca197e 100755 --- a/build/moz.configure/toolchain.configure +++ b/build/moz.configure/toolchain.configure @@ -81,20 +81,20 @@ add_old_configure_assignment('_YASM_MINOR_VERSION', def yasm_asflags(yasm, target): if yasm: asflags = { - ('OSX', 'x86'): '-f macho32', - ('OSX', 'x86_64'): '-f macho64', - ('WINNT', 'x86'): '-f win32', - ('WINNT', 'x86_64'): '-f x64', + ('OSX', 'x86'): ['-f', 'macho32'], + ('OSX', 'x86_64'): ['-f', 'macho64'], + ('WINNT', 'x86'): ['-f', 'win32'], + ('WINNT', 'x86_64'): ['-f', 'x64'], }.get((target.os, target.cpu), None) if asflags is None: # We're assuming every x86 platform we support that's # not Windows or Mac is ELF. if target.cpu == 'x86': - asflags = '-f elf32' + asflags = ['-f', 'elf32'] elif target.cpu == 'x86_64': - asflags = '-f elf64' + asflags = ['-f', 'elf64'] if asflags: - asflags += ' -rnasm -pnasm' + asflags += ['-rnasm', '-pnasm'] return asflags diff --git a/js/src/old-configure.in b/js/src/old-configure.in index e8c534f48323..6d181d2d0894 100644 --- a/js/src/old-configure.in +++ b/js/src/old-configure.in @@ -1952,7 +1952,7 @@ AC_SUBST(AR) AC_SUBST(AR_FLAGS) AC_SUBST(AR_EXTRACT) AC_SUBST(AS) -AC_SUBST(ASFLAGS) +AC_SUBST_LIST(ASFLAGS) AC_SUBST(AS_DASH_C_FLAG) AC_SUBST(RC) AC_SUBST(RCFLAGS) diff --git a/old-configure.in b/old-configure.in index c9215442e759..7130314a72f0 100644 --- a/old-configure.in +++ b/old-configure.in @@ -4478,7 +4478,7 @@ AC_SUBST(AR) AC_SUBST(AR_FLAGS) AC_SUBST(AR_EXTRACT) AC_SUBST(AS) -AC_SUBST(ASFLAGS) +AC_SUBST_LIST(ASFLAGS) AC_SUBST(AS_DASH_C_FLAG) AC_SUBST(RC) AC_SUBST(RCFLAGS)