SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
devel/jdk/11/patches/patch-make_common_NativeCompilation_gmk
Normal file
18
devel/jdk/11/patches/patch-make_common_NativeCompilation_gmk
Normal file
|
@ -0,0 +1,18 @@
|
|||
Keep full bin/lib with debug in debuginfo file so it can be restored
|
||||
later in post-build. This results in jmod's without debuginfo so we
|
||||
get the debug package without bloating the size of the jdk package.
|
||||
|
||||
Index: make/common/NativeCompilation.gmk
|
||||
--- make/common/NativeCompilation.gmk.orig
|
||||
+++ make/common/NativeCompilation.gmk
|
||||
@@ -1003,9 +1003,7 @@ define SetupNativeCompilationBody
|
||||
# Setup the command line creating debuginfo files, to be run after linking.
|
||||
# It cannot be run separately since it updates the original target file
|
||||
$1_CREATE_DEBUGINFO_CMDS := \
|
||||
- $$($1_OBJCOPY) --only-keep-debug $$($1_TARGET) $$($1_DEBUGINFO_FILES) $$(NEWLINE) \
|
||||
- $(CD) $$($1_OUTPUT_DIR) && \
|
||||
- $$($1_OBJCOPY) --add-gnu-debuglink=$$($1_DEBUGINFO_FILES) $$($1_TARGET)
|
||||
+ $(CP) $$($1_TARGET) $$($1_DEBUGINFO_FILES)
|
||||
|
||||
else ifeq ($(OPENJDK_TARGET_OS), aix)
|
||||
# AIX does not provide the equivalent of OBJCOPY to extract debug symbols,
|
Loading…
Add table
Add a link
Reference in a new issue