From: Andrew M. Kuchling Date: Sat, 14 Jul 2001 20:28:10 +0000 (+0000) Subject: Fix bug #437487: "2.1 build on Solaris fails if CC is set" X-Git-Tag: v2.2a3~1162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9eb27a89d8e37504a685651963c390bf8ebf78ca;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/setup.py b/setup.py index 5c5f5dc8fdb9..545143a29a55 100644 --- 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)