summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 7a649c6..6de7aae 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)