13
0

make backtrace symbols work again inside gtk2_ardour (-rdynamic is a link-time flag, not compile-time

This commit is contained in:
Paul Davis 2014-02-07 15:25:18 -05:00
parent 60a9213035
commit ed75b9425b

View File

@ -177,10 +177,6 @@ def set_compiler_flags (conf,opt):
if opt.gprofile: if opt.gprofile:
debug_flags = [ '-pg' ] debug_flags = [ '-pg' ]
if opt.backtrace:
if platform != 'darwin' and not is_clang:
debug_flags = [ '-rdynamic' ]
# Autodetect # Autodetect
if opt.dist_target == 'auto': if opt.dist_target == 'auto':
if platform == 'darwin': if platform == 'darwin':
@ -415,6 +411,10 @@ def set_compiler_flags (conf,opt):
conf.env.append_value('CFLAGS', optimization_flags) conf.env.append_value('CFLAGS', optimization_flags)
conf.env.append_value('CXXFLAGS', optimization_flags) conf.env.append_value('CXXFLAGS', optimization_flags)
if opt.backtrace:
if platform != 'darwin' and not is_clang:
linker_flags += [ '-rdynamic' ]
conf.env.append_value('CFLAGS', compiler_flags) conf.env.append_value('CFLAGS', compiler_flags)
conf.env.append_value('CFLAGS', c_flags) conf.env.append_value('CFLAGS', c_flags)
conf.env.append_value('CXXFLAGS', compiler_flags) conf.env.append_value('CXXFLAGS', compiler_flags)