diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py
index efacb63..70b30c1 100644
--- a/Lib/distutils/unixccompiler.py
+++ b/Lib/distutils/unixccompiler.py
@@ -199,8 +199,8 @@ class UnixCCompiler(CCompiler):
                     linker[i+offset] = self.compiler_cxx[i]
 
                 if sys.platform == 'darwin':
-                    linker = _osx_support.compiler_fixup(linker, ld_args)
                     ld_args = ['-arch', 'x86_64'] + ld_args
+                    linker = _osx_support.compiler_fixup(linker, ld_args)
 
                 self.spawn(linker + ld_args)
             except DistutilsExecError as msg:
