Bug 769005: add -g to link options in debug mode (r=mcgachey).
authorFelix Klock II <fklockii@adobe.com>
Wed, 05 Sep 2012 04:40:02 -0700
changeset 7538 73cd547535966365fb984cf4ea5eb0d4c0ddd789
parent 7537 e0e2fbe3381cfb1bf5f20f08b583191e2f5acad7
child 7539 90ecd685dbfd6a2cee6a08f3dc48184bcc7552e2
push id4257
push userdschaffe@adobe.com
push dateThu, 06 Sep 2012 14:36:05 +0000
reviewersmcgachey
bugs769005, 1108583
Bug 769005: add -g to link options in debug mode (r=mcgachey). {{mercurial ad73d66951a10cac93cf155db69ae3c67ab382b6}} CL@1108583
configure.py
--- a/configure.py
+++ b/configure.py
@@ -382,16 +382,17 @@ if config.getCompiler() == 'GCC':
         APP_CFLAGS += FLOAT_ABI
         AVMSHELL_LDFLAGS += FLOAT_ABI
 
     if config.getDebug():
         APP_CXXFLAGS += ""
     else:
         APP_CXXFLAGS += "-Wuninitialized "
     DEBUG_CXXFLAGS += "-g "
+    DEBUG_LDFLAGS += "-g "
 elif config.getCompiler() == 'VS':
     if cpu == "arm":
         APP_CXXFLAGS = "-W4 -WX -wd4291 -wd4201 -wd4189 -wd4740 -wd4127 -fp:fast -GF -GS- -Zc:wchar_t- "
         OS_LDFLAGS += "-MAP "
         if config.getDebug():
             DEBUG_CXXFLAGS = "-Od "
             DEBUG_CFLAGS = "-Od "
             APP_CXXFLAGS += "-GR- -fp:fast -GS- -Zc:wchar_t- -Zc:forScope "