diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py
index d00c48981e..42a57b2cf8 100644
--- a/Lib/distutils/unixccompiler.py
+++ b/Lib/distutils/unixccompiler.py
@@ -199,6 +199,8 @@ def link(self, target_desc, objects,
                     linker[i+offset] = self.compiler_cxx[i]
 
                 if sys.platform == 'darwin':
+                    from distutils.util import get_host_platform
+                    ld_args = ['-arch', get_host_platform().split("-")[-1]] + ld_args
                     linker = _osx_support.compiler_fixup(linker, ld_args)
 
                 self.spawn(linker + ld_args)
