Antonio Cuni  committed 173c519

for the series "how could this have ever worked?": distutils.unixcompiler needs to know the CC to determine the correct linker parameters

  • Participants
  • Parent commits 51ddba0
  • Branches default

Comments (0)

Files changed (1)

File lib-python/2/distutils/

     g['SO'] = _get_so_extension() or ".so"
     g['SOABI'] = g['SO'].rsplit('.')[0]
     g['LIBDIR'] = os.path.join(sys.prefix, 'lib')
+    g['CC'] = "gcc -pthread" # -pthread might not be valid on OS/X, check
     global _config_vars
     _config_vars = g