X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d440a0e764687c595254539539b0cd6e3b075590..cdc6a041296fb457ac693691c8ce62c99d3acb41:/wxPython/setup.py diff --git a/wxPython/setup.py b/wxPython/setup.py index d1f624e9a8..31c02aa5c0 100755 --- a/wxPython/setup.py +++ b/wxPython/setup.py @@ -311,6 +311,9 @@ elif os.name == 'posix' and sys.platform[:6] == "darwin": cflags = string.split(cflags) if UNDEF_NDEBUG: cflags.append('-UNDEBUG') + if debug: + cflags.append('-g') + cflags.append('-O0') lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1] lflags = string.split(lflags) @@ -338,6 +341,9 @@ elif os.name == 'posix': cflags = string.split(cflags) if UNDEF_NDEBUG: cflags.append('-UNDEBUG') + if debug: + cflags.append('-g') + cflags.append('-O0') lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1] lflags = string.split(lflags)