diff make/linux/makefiles/saproc.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 d1605aabd0a1
children f5ee65f94d9a
line wrap: on
line diff
--- a/make/linux/makefiles/saproc.make	Thu Apr 16 11:22:40 2009 -0700
+++ b/make/linux/makefiles/saproc.make	Fri Apr 17 15:50:12 2009 +0100
@@ -43,6 +43,11 @@
 
 DEST_SAPROC = $(JDK_LIBDIR)/$(LIBSAPROC)
 
+# DEBUG_BINARIES overrides everything, use full -g debug information
+ifeq ($(DEBUG_BINARIES), true)
+  SA_DEBUG_CFLAGS = -g
+endif
+
 # if $(AGENT_DIR) does not exist, we don't build SA
 # also, we don't build SA on Itanium.
 
@@ -67,6 +72,7 @@
 	           -I$(BOOT_JAVA_HOME)/include/$(Platform_os_family)    \
 	           $(SASRCFILES)                                        \
 	           $(SA_LFLAGS)                                         \
+	           $(SA_DEBUG_CFLAGS)                                   \
 	           -o $@                                                \
 	           -lthread_db