hotspot/make/linux/makefiles/saproc.make
changeset 2873 96526fe40c0e
parent 2784 f159507e4db1
parent 2747 9988d908a2b2
child 3261 c7d5aae8d3f7
--- a/hotspot/make/linux/makefiles/saproc.make	Wed May 13 00:45:22 2009 -0700
+++ b/hotspot/make/linux/makefiles/saproc.make	Fri May 15 18:14:44 2009 -0700
@@ -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