diff make/linux/makefiles/gcc.make @ 767:5d4dd2f5f6a1

6829575: 100028: Debug information is incomplete or missing Summary: Enable debugging in many places Reviewed-by: ohair Contributed-by: Andrew Haley <aph@redhat.com>
author aph
date Fri, 17 Apr 2009 15:50:12 +0100
parents 0fbdb4381b99
children f5ee65f94d9a
line wrap: on
line diff
--- a/make/linux/makefiles/gcc.make	Thu Apr 16 11:22:40 2009 -0700
+++ b/make/linux/makefiles/gcc.make	Fri Apr 17 15:50:12 2009 +0100
@@ -166,3 +166,9 @@
 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
 DEBUG_CFLAGS += -gstabs
 endif
+
+# DEBUG_BINARIES overrides everything, use full -g debug information
+ifeq ($(DEBUG_BINARIES), true)
+  DEBUG_CFLAGS = -g
+  CFLAGS += $(DEBUG_CFLAGS)
+endif