Kaydet (Commit) 3e4b0e80 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Get OPT from the environment to build the CCSHARED command.

Fixes the problem reported in bug #438786.
üst 772747b3
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment