view patches/hotspot/default/icedtea-debuginfo.patch @ 1579:98d260aaa04b

Ensure debuginfo is turned on in all cases. 2009-12-10 Andrew Haley <aph@redhat.com> * patches/hotspot/default/icedtea-debuginfo.patch: Ensure debuginfo is turned on in the saproc and jsig Makefiles.
author Andrew John Hughes <ahughes@redhat.com>
date Thu, 10 Dec 2009 16:51:16 +0000
parents b858f5551ba7
children
line wrap: on
line source

diff -Nru openjdk.orig/hotspot/make/linux/makefiles/gcc.make openjdk/hotspot/make/linux/makefiles/gcc.make
--- openjdk.orig/hotspot/make/linux/makefiles/gcc.make	2008-08-20 22:58:22.000000000 +0100
+++ openjdk/hotspot/make/linux/makefiles/gcc.make	2008-08-20 23:01:45.000000000 +0100
@@ -62,6 +62,10 @@
 CFLAGS += -D_REENTRANT
 CFLAGS += -fcheck-new
 
+# Always generate full debuginfo on Linux.  It'll be in a separate
+# debuginfo package when building RPMs.
+CFLAGS += -g
+
 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
 ARCHFLAG/i486    = -m32 -march=i586
 ARCHFLAG/amd64   = -m64
--- openjdk/hotspot/make/linux/makefiles/saproc.make~   2009-12-09 14:12:24.873247017 +0000
+++ openjdk/hotspot/make/linux/makefiles/saproc.make    2009-12-09 14:19:53.382369557 +0000
@@ -67,6 +67,7 @@
                   -I$(BOOT_JAVA_HOME)/include/$(Platform_os_family)    \
                   $(SASRCFILES)                                        \
                   $(SA_LFLAGS)                                         \
+                  -g                                                   \
                   -o $@                                                \
                   -lthread_db

--- openjdk/hotspot/make/linux/makefiles/jsig.make~     2009-05-15 00:36:38.000000000 +0100
+++ openjdk/hotspot/make/linux/makefiles/jsig.make      2009-12-09 14:18:04.041371508 +0000
@@ -44,4 +44,5 @@
 $(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE)
        @echo Making signal interposition lib...
        $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \
+                        -g                                               \
                          $(LFLAGS_JSIG) -o $@ $< -ldl

 install_jsig: $(LIBJSIG)