08ca53f
diff -up Python-3.3.0b1/Lib/distutils/sysconfig.py.fix-CC-options.patch Python-3.3.0b1/Lib/distutils/sysconfig.py
08ca53f
--- Python-3.3.0b1/Lib/distutils/sysconfig.py.fix-CC-options.patch	2012-07-24 11:57:43.804353959 -0400
08ca53f
+++ Python-3.3.0b1/Lib/distutils/sysconfig.py	2012-07-24 11:59:38.341354843 -0400
08ca53f
@@ -580,7 +580,9 @@ def get_config_vars(*args):
08ca53f
             # skip checks if the compiler was overriden with a CC env variable
08ca53f
             if 'CC' not in os.environ:
08ca53f
                 cc = oldcc = _config_vars['CC']
08ca53f
-                if not find_executable(cc):
08ca53f
+                # CC might contain additional arguments e.g. "gcc -pthread", so
08ca53f
+                # look for the first word:
08ca53f
+                if not find_executable(cc.split()[0]):
08ca53f
                     # Compiler is not found on the shell search PATH.
08ca53f
                     # Now search for clang, first on PATH (if the Command LIne
08ca53f
                     # Tools have been installed in / or if the user has provided