diff options
Diffstat (limited to 'src/SConscript')
-rw-r--r-- | src/SConscript | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/SConscript b/src/SConscript index 7907dbb5d..b9664dd39 100644 --- a/src/SConscript +++ b/src/SConscript @@ -374,8 +374,15 @@ def makeEnv(label, objsfx, strip = False, **kwargs): envList.append(newEnv) # Debug binary +# Solaris seems to have some issue with DWARF2 debugging information, it's ok +# with stabs though +if sys.platform == 'sunos5': + debug_flag = '-gstabs+' +else: + debug_flag = '-ggdb3' + makeEnv('debug', '.do', - CCFLAGS = Split('-g3 -gdwarf-2 -O0'), + CCFLAGS = Split('%s -O0' % debug_flag), CPPDEFINES = 'DEBUG') # Optimized binary |