aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-10 00:38:24 +0000
committerlloyd <[email protected]>2010-06-10 00:38:24 +0000
commit4c932531a32fa0388fc07b411876981a1d955481 (patch)
tree774f1bca9bdeac30ff71c6ffdb84c3d5e3d77127 /configure.py
parent5553cc76368f68671869955dc448ac0db9fc262c (diff)
Respect --disable-shared
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index 9c032044f..46d15a69e 100755
--- a/configure.py
+++ b/configure.py
@@ -670,6 +670,11 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo):
return os.path.join(options.with_build_dir, path)
return path
+ def only_if_shared(option):
+ if options.build_shared_lib:
+ return option
+ return ''
+
return {
'version_major': build_config.version_major,
'version_minor': build_config.version_minor,
@@ -709,8 +714,8 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo):
'check_opt': cc.check_opt_flags,
'lang_flags': cc.lang_flags + options.extra_flags,
'warn_flags': cc.warning_flags,
- 'shared_flags': cc.shared_flags,
- 'dll_import_flags': cc.dll_import_flags,
+ 'shared_flags': only_if_shared(cc.shared_flags),
+ 'dll_import_flags': only_if_shared(cc.dll_import_flags),
'so_link': cc.so_link_command_for(osinfo.basename),