71 # The suffix applied to scripts (.bat for windows, nothing for unix) |
71 # The suffix applied to scripts (.bat for windows, nothing for unix) |
72 SCRIPT_SUFFIX = |
72 SCRIPT_SUFFIX = |
73 # CC compiler object code output directive flag value |
73 # CC compiler object code output directive flag value |
74 CC_OBJECT_OUTPUT_FLAG = -o #trailing blank required! |
74 CC_OBJECT_OUTPUT_FLAG = -o #trailing blank required! |
75 CC_PROGRAM_OUTPUT_FLAG = -o #trailing blank required! |
75 CC_PROGRAM_OUTPUT_FLAG = -o #trailing blank required! |
|
76 |
|
77 ifdef ENABLE_FULL_DEBUG_SYMBOLS |
|
78 # Only check for Full Debug Symbols support on Solaris if it is |
|
79 # specifically enabled. Hopefully, it can be enabled by default |
|
80 # once the .debuginfo size issues are worked out. |
|
81 |
|
82 # Default OBJCOPY comes from the SUNWbinutils package: |
|
83 DEF_OBJCOPY=/usr/sfw/bin/gobjcopy |
|
84 ifeq ($(PLATFORM)-$(LIBARCH), solaris-amd64) |
|
85 # On Solaris AMD64/X64, gobjcopy is not happy and fails: |
|
86 # |
|
87 # usr/sfw/bin/gobjcopy --add-gnu-debuglink=<lib>.debuginfo <lib>.so |
|
88 # BFD: stKPaiop: Not enough room for program headers, try linking with -N |
|
89 # /usr/sfw/bin/gobjcopy: stKPaiop: Bad value |
|
90 # BFD: stKPaiop: Not enough room for program headers, try linking with -N |
|
91 # /usr/sfw/bin/gobjcopy: libsaproc.debuginfo: Bad value |
|
92 # BFD: stKPaiop: Not enough room for program headers, try linking with -N |
|
93 # /usr/sfw/bin/gobjcopy: stKPaiop: Bad value |
|
94 _JUNK_ := $(shell \ |
|
95 echo >&2 "INFO: $(DEF_OBJCOPY) is not working on Solaris AMD64/X64") |
|
96 OBJCOPY= |
|
97 else |
|
98 OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY)) |
|
99 ifneq ($(ALT_OBJCOPY),) |
|
100 _JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)") |
|
101 # disable .debuginfo support by setting ALT_OBJCOPY to a non-existent path |
|
102 OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY)) |
|
103 endif |
|
104 endif |
|
105 |
|
106 ifdef LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS |
|
107 # The setting of OBJCOPY above enables the JDK build to import |
|
108 # .debuginfo files from the HotSpot build. However, adding FDS |
|
109 # support to the JDK build will occur in phases so a different |
|
110 # make variable is used to indicate that a particular library |
|
111 # supports FDS. |
|
112 |
|
113 ifeq ($(OBJCOPY),) |
|
114 _JUNK_ := $(shell \ |
|
115 echo >&2 "INFO: no objcopy cmd found so cannot create .debuginfo files.") |
|
116 else |
|
117 _JUNK_ := $(shell \ |
|
118 echo >&2 "INFO: $(OBJCOPY) cmd found so will create .debuginfo files.") |
|
119 |
|
120 # Library stripping policies for .debuginfo configs: |
|
121 # all_strip - strips everything from the library |
|
122 # min_strip - strips most stuff from the library; leaves minimum symbols |
|
123 # no_strip - does not strip the library at all |
|
124 # |
|
125 # Oracle security policy requires "all_strip". A waiver was granted on |
|
126 # 2011.09.01 that permits using "min_strip" in the Java JDK and Java JRE. |
|
127 # |
|
128 DEF_STRIP_POLICY="min_strip" |
|
129 ifeq ($(ALT_STRIP_POLICY),) |
|
130 STRIP_POLICY=$(DEF_STRIP_POLICY) |
|
131 else |
|
132 STRIP_POLICY=$(ALT_STRIP_POLICY) |
|
133 endif |
|
134 _JUNK_ := $(shell \ |
|
135 echo >&2 "INFO: STRIP_POLICY=$(STRIP_POLICY)") |
|
136 endif |
|
137 endif |
|
138 endif |
76 |
139 |
77 # |
140 # |
78 # Java default optimization (-x04/-O2) etc. Applies to the VM. |
141 # Java default optimization (-x04/-O2) etc. Applies to the VM. |
79 # |
142 # |
80 ifndef OPTIMIZATION_LEVEL |
143 ifndef OPTIMIZATION_LEVEL |