diff options
author | lloyd <[email protected]> | 2011-05-13 15:37:58 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-05-13 15:37:58 +0000 |
commit | efe4391d29e92dd50468e917fd734062eab66eeb (patch) | |
tree | 33ca4fdb7e99ffcacf230d0a7c23fbb032f95bb8 /configure.py | |
parent | 56902332f1d8f9533238d1c14652621def72b799 (diff) |
Fix --enable-debug
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.py b/configure.py index 8569bfee6..ac4a4e2c6 100755 --- a/configure.py +++ b/configure.py @@ -513,6 +513,18 @@ class CompilerInfo(object): return '' + def library_opt_flags(self, options): + def gen_flags(): + yield self.lib_opt_flags + + if options.debug_build: + yield self.debug_flags + + if not options.debug_build: + yield self.no_debug_flags + + return (' '.join(gen_flags())).strip() + def so_link_command_for(self, osname): if osname in self.so_link_flags: return self.so_link_flags[osname] @@ -726,7 +738,7 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo): 'cc': cc.binary_name + cc.mach_abi_link_flags( options.os, options.arch, options.cpu, options.debug_build), - 'lib_opt': cc.lib_opt_flags, + 'lib_opt': cc.library_opt_flags(options), 'mach_opt': cc.mach_opts(options.arch, options.cpu), 'check_opt': cc.check_opt_flags, 'lang_flags': cc.lang_flags + options.extra_flags, |