CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]    2019/12/17 07:22:30

Modified files:
        devel/jdk/11   : Makefile 
        devel/jdk/11/pkg: PLIST 
Added files:
        devel/jdk/11/patches: patch-make_common_NativeCompilation_gmk 

Log message:
Add debug package support.

The jdk has options for controlling debug symbol generation. However,
these options don't line up well with our debug package support. Using
--with-native-debug-symbols=internal bloats the jdk package by
including debug info in the jmod's. Using external mode doesn't do
this but results in debug info files and debug links that don't match
our debug package setup. To get decent results the following was done:

* Use --with-native-debug-symbols=external
* Patch the jdk to copy the full bin/lib to the .debuginfo file
instead of using objcopy --only-keep-debug.
* In post-build move/copy the .debuginfo files over their stripped
versions.
* Fixup a few cases where the debuginfo file wasn't installed into
the images directories.

Reply via email to