From: Martin v. Löwis Date: Fri, 10 Aug 2001 08:56:17 +0000 (+0000) Subject: Get OPT from the environment to build the CCSHARED command. X-Git-Tag: v2.2a3~689 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e4b0e800b04380e669d4cff7f8c77bdc031b170;p=python Get OPT from the environment to build the CCSHARED command. Fixes the problem reported in bug #438786. --- diff --git a/setup.py b/setup.py index 7a649c63d9..6de7aae76c 100644 --- a/setup.py +++ b/setup.py @@ -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)