Get OPT from the environment to build the CCSHARED command.

Fixes the problem reported in bug #438786.
This commit is contained in:
Martin v. Löwis 2001-08-10 08:56:17 +00:00
parent 772747b3f1
commit 3e4b0e800b
1 changed files with 2 additions and 2 deletions

View File

@ -138,8 +138,8 @@ class PyBuildExt(build_ext):
# unfortunately, distutils doesn't let us provide separate C and C++
# compilers
if compiler is not None:
(ccshared,) = sysconfig.get_config_vars('CCSHARED')
args['compiler_so'] = compiler + ' ' + ccshared
(ccshared,opt) = sysconfig.get_config_vars('CCSHARED','OPT')
args['compiler_so'] = compiler + ' ' + opt + ' ' + ccshared
if linker_so is not None:
args['linker_so'] = linker_so + ' -shared'
self.compiler.set_executables(**args)