scons: Use -g instead of -g3.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 8 Sep 2011 08:59:01 +0000 (09:59 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 8 Sep 2011 08:59:01 +0000 (09:59 +0100)
-g3 causes binaries to be 3x - 10x bigger, not only on MinGW w/ dwarf
debugging info, but linux as well.

Stick with -g, (which defaults to -g2), like autoconf does.

scons/gallium.py

index dc77904f06d2439f939ca6b6ce10b15a8566bfcd..1c9c0ea32e46613dcc13f1e3dbc9666fdbfa774d 100755 (executable)
@@ -363,7 +363,7 @@ def generate(env):
             ccflags += ['-O3']
         # Work around aliasing bugs - developers should comment this out
         ccflags += ['-fno-strict-aliasing']
-        ccflags += ['-g3']
+        ccflags += ['-g']
         if env['build'] in ('checked', 'profile'):
             # See http://code.google.com/p/jrfonseca/wiki/Gprof2Dot#Which_options_should_I_pass_to_gcc_when_compiling_for_profiling?
             ccflags += [