]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport AMK's checkin 1.42:
authorThomas Wouters <thomas@python.org>
Mon, 16 Jul 2001 16:00:32 +0000 (16:00 +0000)
committerThomas Wouters <thomas@python.org>
Mon, 16 Jul 2001 16:00:32 +0000 (16:00 +0000)
Fix bug #437487: "2.1 build on Solaris fails if CC is set"
by adding the contents of CCSHARED to the compiler specified by CC

setup.py

index 5fc981cb0c2d9c300ad8c60f137cb87b6a1ee5da..04111a1d992ac17f6d450901c3f270d0d0d13836 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -118,7 +118,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)