Building JDK9 with all debugging information
Omair Majid
omajid at redhat.com
Thu Nov 5 17:50:14 UTC 2015
Hi,
I had trouble building a recent version of OpenJDK 9 in a configuration
that left all debugging information in the shared objects. So here's a
quick guide on how to do that:
bash ./configure \
--disable-zip-debug-info \
--with-debug-level=release \
--disable-warnings-as-errors
You might also like the following options to use more system libraries:
--with-stdc++lib=dynamic \
--with-zlib=system \
--with-libjpeg=system \
--with-giflib=system \
--with-libpng=system \
--with-lcms=system \
And this to enable stronger cyrpto:
--enable-unlimited-crypto \
And then build it using:
make \
DEBUG_BINARIES=true \
JAVAC_FLAGS=-g \
STRIP_POLICY=no_strip \
STRIP="" \
ALT_OBJCOPY=none \
all
DEBUG_BINARIES forces "-g" when building native code and JAVAC_FLAGS does the
same for Java code. STRIP_POLICY, STRIP, and ALT_OBJCOPY together prevent the
build from stripping debug information from shared objects.
Cheers,
Omair
--
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95 0056 F286 F14F 6648 4681
More information about the distro-pkg-dev
mailing list