From 4c932531a32fa0388fc07b411876981a1d955481 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 10 Jun 2010 00:38:24 +0000 Subject: Respect --disable-shared --- configure.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'configure.py') 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), -- cgit v1.2.3