]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix bug #437487: "2.1 build on Solaris fails if CC is set"
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 14 Jul 2001 20:28:10 +0000 (20:28 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 14 Jul 2001 20:28:10 +0000 (20:28 +0000)
   by adding the contents of CCSHARED to the compiler specified by CC

setup.py

index 5c5f5dc8fdb9e8980693b5b616e0e88186a150bc..545143a29a55c183e86db7344e4b730ff465554a 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -116,7 +116,8 @@ class PyBuildExt(build_ext):
         # unfortunately, distutils doesn't let us provide separate C and C++
         # compilers
         if compiler is not None:
-            args['compiler_so'] = compiler
+            (ccshared,) = sysconfig.get_config_vars('CCSHARED')
+            args['compiler_so'] = compiler + ' ' + ccshared
         if linker_so is not None:
             args['linker_so'] = linker_so + ' -shared'
         self.compiler.set_executables(**args)