25 # The common definitions for hotspot bsd builds. |
25 # The common definitions for hotspot bsd builds. |
26 # Include the top level defs.make under make directory instead of this one. |
26 # Include the top level defs.make under make directory instead of this one. |
27 # This file is included into make/defs.make. |
27 # This file is included into make/defs.make. |
28 |
28 |
29 SLASH_JAVA ?= /java |
29 SLASH_JAVA ?= /java |
|
30 |
|
31 define print_info |
|
32 ifneq ($$(LOG_LEVEL), warn) |
|
33 $$(shell echo >&2 "INFO: $1") |
|
34 endif |
|
35 endef |
30 |
36 |
31 # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name |
37 # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name |
32 ARCH:=$(shell uname -m) |
38 ARCH:=$(shell uname -m) |
33 PATH_SEP = : |
39 PATH_SEP = : |
34 ifeq ($(LP64), 1) |
40 ifeq ($(LP64), 1) |
185 ENABLE_FULL_DEBUG_SYMBOLS = $(FULL_DEBUG_SYMBOLS) |
191 ENABLE_FULL_DEBUG_SYMBOLS = $(FULL_DEBUG_SYMBOLS) |
186 else |
192 else |
187 # debug variants always get Full Debug Symbols (if available) |
193 # debug variants always get Full Debug Symbols (if available) |
188 ENABLE_FULL_DEBUG_SYMBOLS = 1 |
194 ENABLE_FULL_DEBUG_SYMBOLS = 1 |
189 endif |
195 endif |
190 _JUNK_ := $(shell \ |
196 $(eval $(call print_info, "ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)")) |
191 echo >&2 "INFO: ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)") |
|
192 # since objcopy is optional, we set ZIP_DEBUGINFO_FILES later |
197 # since objcopy is optional, we set ZIP_DEBUGINFO_FILES later |
193 |
198 |
194 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
199 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
195 ifeq ($(OS_VENDOR), Darwin) |
200 ifeq ($(OS_VENDOR), Darwin) |
196 # MacOS X doesn't use OBJCOPY or STRIP_POLICY |
201 # MacOS X doesn't use OBJCOPY or STRIP_POLICY |
207 DEF_OBJCOPY=$(ALT_COMPILER_PATH)/objcopy |
212 DEF_OBJCOPY=$(ALT_COMPILER_PATH)/objcopy |
208 endif |
213 endif |
209 endif |
214 endif |
210 OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY)) |
215 OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY)) |
211 ifneq ($(ALT_OBJCOPY),) |
216 ifneq ($(ALT_OBJCOPY),) |
212 _JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)") |
217 $(eval $(call print_info, "ALT_OBJCOPY=$(ALT_OBJCOPY)")) |
213 OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY)) |
218 OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY)) |
214 endif |
219 endif |
215 |
220 |
216 ifeq ($(OBJCOPY),) |
221 ifeq ($(OBJCOPY),) |
217 _JUNK_ := $(shell \ |
222 $(eval $(call print_info, "no objcopy cmd found so cannot create .debuginfo" \ |
218 echo >&2 "INFO: no objcopy cmd found so cannot create .debuginfo" \ |
223 "files. You may need to set ALT_OBJCOPY.")) |
219 "files. You may need to set ALT_OBJCOPY.") |
|
220 ENABLE_FULL_DEBUG_SYMBOLS=0 |
224 ENABLE_FULL_DEBUG_SYMBOLS=0 |
221 _JUNK_ := $(shell \ |
225 $(eval $(call print_info, "ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)")) |
222 echo >&2 "INFO:" \ |
|
223 "ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)") |
|
224 else |
226 else |
225 _JUNK_ := $(shell \ |
227 $(eval $(call print_info, "$(OBJCOPY) cmd found so will create .debuginfo" \ |
226 echo >&2 "INFO: $(OBJCOPY) cmd found so will create .debuginfo" \ |
228 "files.")) |
227 "files.") |
|
228 |
229 |
229 # Library stripping policies for .debuginfo configs: |
230 # Library stripping policies for .debuginfo configs: |
230 # all_strip - strips everything from the library |
231 # all_strip - strips everything from the library |
231 # min_strip - strips most stuff from the library; leaves |
232 # min_strip - strips most stuff from the library; leaves |
232 # minimum symbols |
233 # minimum symbols |
239 # Currently, STRIP_POLICY is only used when Full Debug Symbols |
240 # Currently, STRIP_POLICY is only used when Full Debug Symbols |
240 # is enabled. |
241 # is enabled. |
241 # |
242 # |
242 STRIP_POLICY ?= min_strip |
243 STRIP_POLICY ?= min_strip |
243 |
244 |
244 _JUNK_ := $(shell \ |
245 $(eval $(call print_info, "STRIP_POLICY=$(STRIP_POLICY)")) |
245 echo >&2 "INFO: STRIP_POLICY=$(STRIP_POLICY)") |
|
246 |
246 |
247 ZIP_DEBUGINFO_FILES ?= 1 |
247 ZIP_DEBUGINFO_FILES ?= 1 |
248 endif |
248 endif |
249 |
249 |
250 _JUNK_ := $(shell \ |
250 $(eval $(call print_info, "ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES)")) |
251 echo >&2 "INFO: ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES)") |
|
252 endif |
251 endif |
253 endif # ENABLE_FULL_DEBUG_SYMBOLS=1 |
252 endif # ENABLE_FULL_DEBUG_SYMBOLS=1 |
254 endif # BUILD_FLAVOR |
253 endif # BUILD_FLAVOR |
255 endif # JDK_6_OR_EARLIER |
254 endif # JDK_6_OR_EARLIER |
256 |
255 |