Mercurial > hg > jdk9-shenandoah
changeset 1518:c2e92fac30ce
8066757: Can't build 'images' with --disable-zip-debug-info on OS X after jigsaw m2 merge
Reviewed-by: erikj, ihse
author | sla |
---|---|
date | Fri, 22 May 2015 09:09:56 +0200 |
parents | aa82f2db653e |
children | c66e6a41e8ae |
files | make/StripBinaries.gmk |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/make/StripBinaries.gmk Tue May 19 11:39:57 2015 -0700 +++ b/make/StripBinaries.gmk Fri May 22 09:09:56 2015 +0200 @@ -61,9 +61,12 @@ COPY_LIBS_SRC := \ $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_libs \ \( ! -name '*$(SHARED_LIBRARY_SUFFIX)' -type f \) -o -type l) +# OS X stores symbol information in a .dylib file inside a .dSYM directory - +# that file should not be stripped, so we prune the tree at the .dSYM directory. +# Example: support/modules_libs/java.base/libjsig.dylib.dSYM/Contents/Resources/DWARF/libjsig.dylib STRIP_LIBS_SRC := \ $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_libs \ - -name '*$(SHARED_LIBRARY_SUFFIX)' -type f) + -name '*$(SHARED_LIBRARY_SUFFIX)' -type f -print -o -name "*.dSYM" -prune) $(eval $(call SetupCopyFiles,STRIP_MODULES_CMDS, \ SRC := $(SUPPORT_OUTPUTDIR)/modules_cmds, \