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