Building OpenJDK with debuginfo

Andrew Haley aph at redhat.com
Wed Jun 20 10:34:18 PDT 2007


Petteri Räty writes:
 > Andrew Haley kirjoitti:
 > > I noticed that debugging IcedTea is difficult, and I've found the core
 > > problem: ecj defaults to generating minimal debuginfo, basically just
 > > line numbers.  GNU/Linux distributions usually have a rule that
 > > debuginfo is enabled for all packages, and I can't think of any reason
 > > not to do that now with IcedTea.  Debuginfo is going to be non-negotiable
 > > in a real release package anyway.
 > > 
 > > So, I'll fix the Makefiles to use "-g" throughout.
 > 
 > Shouldn't -g be something that is picked from CFLAGS.

When building Java code?  I hope not.  :-)

 > This is what we do in the Gentoo OpenJDK ebuild:
 > 
 > 103 	        # Don't pass these to make, or they'll break stuff.
 > 104 	        export OTHER_CFLAGS=${CFLAGS}
 > 105 	        export OTHER_CXXFLAGS=${CXXFLAGS}
 > 
 > http://overlays.gentoo.org/proj/java/browser/java-experimental/dev-java/openjdk/openjdk-1.7.0.0_alpha13.ebuild

OK, thanks.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903



More information about the distro-pkg-dev mailing list