--- a/hotspot/make/linux/makefiles/jsig.make Thu Apr 16 11:22:40 2009 -0700
+++ b/hotspot/make/linux/makefiles/jsig.make Fri Apr 17 15:50:12 2009 +0100
@@ -41,10 +41,15 @@
LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT
+# DEBUG_BINARIES overrides everything, use full -g debug information
+ifeq ($(DEBUG_BINARIES), true)
+ JSIG_DEBUG_CFLAGS = -g
+endif
+
$(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE)
@echo Making signal interposition lib...
$(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \
- $(LFLAGS_JSIG) -o $@ $< -ldl
+ $(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) -o $@ $< -ldl
install_jsig: $(LIBJSIG)
@echo "Copying $(LIBJSIG) to $(DEST_JSIG)"