From 808ee5d13903200dc41177c6b0f464d8b3c99586 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 4 Sep 2013 19:56:14 +1000 Subject: [PATCH] Only define certain debug flags when dist_target is auto Fixes issue when cross compiling using MinGW --- wscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index dbb465a413..e3d783116b 100644 --- a/wscript +++ b/wscript @@ -120,8 +120,9 @@ def set_compiler_flags (conf,opt): debug_flags = [ '-pg' ] if opt.backtrace: - if platform != 'darwin' and not is_clang: - debug_flags = [ '-rdynamic' ] + if opt.dist_target == 'auto': + if platform != 'darwin' and not is_clang: + debug_flags = [ '-rdynamic' ] # Autodetect if opt.dist_target == 'auto':