On 26/02/2019 11:01, Severin Gehwolf wrote:
:
--list-plugins output for --strip-native-debug-symbols:
Plugin Name: strip-native-debug-symbols
Option:
--strip-native-debug-symbols=<exclude-debuginfo-files|keep-debuginfo-files>
Description: Strip debug symbols from native libraries (if any).
This plugin requires at least one option:
objcopy: The path to the objcopy binary. Defaults to objcopy in PATH.
exclude-debuginfo-files: Omit debug info files. Defaults to true.
keep-debuginfo-files[=<ext>]: Keep debug info files in <file>.<ext>.
Defaults to <file>.debuginfo
Examples: --strip-native-debug-symbols objcopy=/usr/bin/objcopy
--strip-native-debug-symbols=exclude-debuginfo-files
--strip-native-debug-symbols keep-debuginfo-files:objcopy=objcopy
Latest webrev which implements this:
http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8214796/08/webrev/
CSR for the new jlink option:
https://bugs.openjdk.java.net/browse/JDK-8219257
I don't have time right now to study the webrev but I think the proposal
(and CSR) looks okay. The only thing is that it's bit awkward that each
of the possible values to the option are optionally but at least one is
required. Once jlink is updated to allow for the value to be optional
then I assume this wart can go away.
-Alan