comparison make/StripBinaries.gmk @ 39428:24cb2cb4ae0b

8159149: Several compiler tests fail with minimal VM Reviewed-by: kvn, psandoz
author iignatyev
date Thu, 16 Jun 2016 01:43:11 +0300
parents aeaa6d0101a8
children
comparison
equal deleted inserted replaced
10:6dd76bdff1f8 11:5c46d558473d
55 endif 55 endif
56 56
57 NO_STRIP_CMDS_FILTER += %.cgi 57 NO_STRIP_CMDS_FILTER += %.cgi
58 58
59 # Don't include debug info for executables. 59 # Don't include debug info for executables.
60 ifneq ($(wildcard $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE)), )
61 # OS X stores symbol information in a .dylib file inside a .dSYM directory -
62 # that file should not be stripped, so we prune the tree at the .dSYM directory.
63 ALL_CMDS_SRC := $(filter-out %.bc %.debuginfo %.diz %.map %.pdb, \
64 $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE) \( -type f -o -type l \) \
65 -print -o -name "*.dSYM" -prune))
66 COPY_CMDS_SRC := $(filter $(NO_STRIP_CMDS_FILTER), $(ALL_CMDS_SRC))
67 STRIP_CMDS_SRC := $(filter-out $(NO_STRIP_CMDS_FILTER), $(ALL_CMDS_SRC))
68 endif
60 69
61 # OS X stores symbol information in a .dylib file inside a .dSYM directory - 70 ifneq ($(wildcard $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)), )
62 # that file should not be stripped, so we prune the tree at the .dSYM directory. 71 # OS X stores symbol information in a .dylib file inside a .dSYM directory -
63 ALL_CMDS_SRC := $(filter-out %.bc %.debuginfo %.diz %.map %.pdb, \ 72 # that file should not be stripped, so we prune the tree at the .dSYM directory.
64 $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_cmds \( -type f -o -type l \) \ 73 # Example: support/modules_libs/java.base/libjsig.dylib.dSYM/Contents/Resources/DWARF/libjsig.dylib
65 -print -o -name "*.dSYM" -prune)) 74 STRIP_LIBS_SRC := \
66 COPY_CMDS_SRC := $(filter $(NO_STRIP_CMDS_FILTER), $(ALL_CMDS_SRC)) 75 $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE) \
67 STRIP_CMDS_SRC := $(filter-out $(NO_STRIP_CMDS_FILTER), $(ALL_CMDS_SRC)) 76 -name '*$(SHARED_LIBRARY_SUFFIX)' -type f -print -o -name "*.dSYM" -prune)
68 77
69 # OS X stores symbol information in a .dylib file inside a .dSYM directory - 78 # Make sure symbolic links are copied and not stripped.
70 # that file should not be stripped, so we prune the tree at the .dSYM directory. 79 COPY_LIBS_SRC := \
71 # Example: support/modules_libs/java.base/libjsig.dylib.dSYM/Contents/Resources/DWARF/libjsig.dylib 80 $(filter-out $(STRIP_LIBS_SRC), \
72 STRIP_LIBS_SRC := \ 81 $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE) -type f -o -type l))
73 $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_libs \ 82 endif
74 -name '*$(SHARED_LIBRARY_SUFFIX)' -type f -print -o -name "*.dSYM" -prune)
75 # Make sure symbolic links are copied and not stripped.
76 COPY_LIBS_SRC := \
77 $(filter-out $(STRIP_LIBS_SRC), \
78 $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/modules_libs -type f -o -type l))
79 83
80 $(eval $(call SetupCopyFiles,STRIP_MODULES_CMDS, \ 84 $(eval $(call SetupCopyFiles,STRIP_MODULES_CMDS, \
81 SRC := $(SUPPORT_OUTPUTDIR)/modules_cmds, \ 85 SRC := $(SUPPORT_OUTPUTDIR)/modules_cmds, \
82 DEST := $(MODULES_CMDS_STRIPPED), \ 86 DEST := $(MODULES_CMDS_STRIPPED), \
83 FILES := $(STRIP_CMDS_SRC), \ 87 FILES := $(STRIP_CMDS_SRC), \