From b37dbf1f1c80168f79bcb59809be5002dc7515b4 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 9 Oct 2009 16:11:45 +0000 Subject: Fix --enable-debug With GCC, only use -finline-functions if not a debug build --- configure.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'configure.py') diff --git a/configure.py b/configure.py index 1c4edb851..0f5e1502d 100755 --- a/configure.py +++ b/configure.py @@ -519,6 +519,14 @@ class CompilerInfo(object): return '' + def library_opt_flags(self, debug_build): + flags = self.lib_opt_flags + if debug_build and self.debug_flags != '': + flags += ' ' + self.debug_flags + if not debug_build and self.no_debug_flags != '': + flags += ' ' + self.no_debug_flags + return flags + def so_link_command_for(self, osname): if osname in self.so_link_flags: return self.so_link_flags[osname] @@ -731,7 +739,7 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo): options.arch, options.cpu), - 'lib_opt': cc.lib_opt_flags, + 'lib_opt': cc.library_opt_flags(options.debug_build), 'mach_opt': cc.mach_opts(options.arch, options.cpu), 'check_opt': cc.check_opt_flags, 'lang_flags': cc.lang_flags + options.extra_flags, @@ -1139,7 +1147,7 @@ if __name__ == '__main__': main() except Exception, e: print >>sys.stderr, e - #import traceback - #traceback.print_exc(file=sys.stderr) + import traceback + traceback.print_exc(file=sys.stderr) sys.exit(1) sys.exit(0) -- cgit v1.2.3