author | jmelvin |
Mon, 16 Apr 2012 18:09:53 -0400 | |
changeset 12538 | 211d6e82fe51 |
parent 12427 | 116544b5a04c |
child 12445 | 9df4dd548612 |
permissions | -rw-r--r-- |
2 | 1 |
# |
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
2 |
# Copyright (c) 1995, 2012, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
# |
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# Makefile to specify compiler flags for programs and libraries |
|
28 |
# targeted to Solaris. Should not contain any rules. |
|
29 |
# |
|
30 |
# WARNING: This file is shared with other workspaces. |
|
31 |
# So when it includes other files, it must use JDK_TOPDIR. |
|
32 |
# |
|
33 |
||
34 |
# Warning: the following variables are overridden by Defs.gmk. Set |
|
35 |
# values will be silently ignored: |
|
36 |
# CFLAGS (set $(OTHER_CFLAGS) instead) |
|
37 |
# CPPFLAGS (set $(OTHER_CPPFLAGS) instead) |
|
38 |
# CXXFLAGS (set $(OTHER_CXXFLAGS) instead) |
|
39 |
# LDFLAGS (set $(OTHER_LDFAGS) instead) |
|
40 |
# LDLIBS (set $(EXTRA_LIBS) instead) |
|
41 |
# LDLIBS_COMMON (set $(EXTRA_LIBS) instead) |
|
42 |
# LINTFLAGS (set $(OTHER_LINTFLAGS) instead) |
|
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
43 |
# |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
44 |
# Note: CPPFLAGS are used in C and C++ compiles. |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
45 |
# |
2 | 46 |
|
47 |
# Get shared JDK settings |
|
48 |
include $(JDK_MAKE_SHARED_DIR)/Defs.gmk |
|
49 |
||
50 |
ifndef PLATFORM_SRC |
|
30
7ea1edf98bfe
6668781: Openjdk windows cygwin build failure: no rule to make linker_md.obj target
ohair
parents:
2
diff
changeset
|
51 |
PLATFORM_SRC = $(BUILDDIR)/../src/solaris |
2 | 52 |
endif # PLATFORM_SRC |
53 |
||
12288
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
12047
diff
changeset
|
54 |
# Location of the various .properties files specific to Solaris platform |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
12047
diff
changeset
|
55 |
ifndef PLATFORM_PROPERTIES |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
12047
diff
changeset
|
56 |
PLATFORM_PROPERTIES = $(BUILDDIR)/../src/solaris/lib |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
12047
diff
changeset
|
57 |
endif # PLATFORM_SRC |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
12047
diff
changeset
|
58 |
|
2 | 59 |
# Platform specific closed sources |
60 |
ifndef OPENJDK |
|
61 |
ifndef CLOSED_PLATFORM_SRC |
|
30
7ea1edf98bfe
6668781: Openjdk windows cygwin build failure: no rule to make linker_md.obj target
ohair
parents:
2
diff
changeset
|
62 |
CLOSED_PLATFORM_SRC = $(BUILDDIR)/../src/closed/solaris |
2 | 63 |
endif |
64 |
endif |
|
65 |
||
66 |
# platform specific include files |
|
67 |
PLATFORM_INCLUDE_NAME = $(PLATFORM) |
|
68 |
PLATFORM_INCLUDE = $(INCLUDEDIR)/$(PLATFORM_INCLUDE_NAME) |
|
69 |
||
70 |
# suffix used for make dependencies files |
|
71 |
DEPEND_SUFFIX = d |
|
72 |
# suffix used for lint files |
|
73 |
LINT_SUFFIX = ln |
|
74 |
# The suffix applied to the library name for FDLIBM |
|
75 |
FDDLIBM_SUFFIX = a |
|
76 |
# The suffix applied to scripts (.bat for windows, nothing for unix) |
|
77 |
SCRIPT_SUFFIX = |
|
78 |
# CC compiler object code output directive flag value |
|
79 |
CC_OBJECT_OUTPUT_FLAG = -o #trailing blank required! |
|
80 |
||
12307
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
81 |
# The Full Debug Symbols (FDS) default for VARIANT == OPT builds is |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
82 |
# enabled with debug info files ZIP'ed to save space. For VARIANT != |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
83 |
# OPT builds, FDS is always enabled, after all a debug build without |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
84 |
# debug info isn't very useful. The ZIP_DEBUGINFO_FILES option only has |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
85 |
# meaning when FDS is enabled. |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
86 |
# |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
87 |
# If you invoke a build with FULL_DEBUG_SYMBOLS=0, then FDS will be |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
88 |
# disabled for a VARIANT == OPT build. |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
89 |
# |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
90 |
# Note: Use of a different variable name for the FDS override option |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
91 |
# versus the FDS enabled check is intentional (FULL_DEBUG_SYMBOLS |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
92 |
# versus ENABLE_FULL_DEBUG_SYMBOLS). For auto build systems that pass |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
93 |
# in options via environment variables, use of distinct variables |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
94 |
# prevents strange behaviours. For example, in a VARIANT != OPT build, |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
95 |
# the FULL_DEBUG_SYMBOLS environment variable will be 0, but the |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
96 |
# ENABLE_FULL_DEBUG_SYMBOLS make variable will be 1. If the same |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
97 |
# variable name is used, then different values can be picked up by |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
98 |
# different parts of the build. Just to be clear, we only need two |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
99 |
# variable names because the incoming option value can be overridden |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
100 |
# in some situations, e.g., a VARIANT != OPT build. |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
101 |
|
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
102 |
ifeq ($(VARIANT), OPT) |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
103 |
FULL_DEBUG_SYMBOLS ?= 1 |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
104 |
ENABLE_FULL_DEBUG_SYMBOLS = $(FULL_DEBUG_SYMBOLS) |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
105 |
else |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
106 |
# debug variants always get Full Debug Symbols (if available) |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
107 |
ENABLE_FULL_DEBUG_SYMBOLS = 1 |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
108 |
endif |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
109 |
_JUNK_ := $(shell \ |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
110 |
echo >&2 "INFO: ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)") |
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
111 |
# since objcopy is optional, we set ZIP_DEBUGINFO_FILES later |
10603
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9350
diff
changeset
|
112 |
|
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
113 |
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
114 |
# Default OBJCOPY comes from the SUNWbinutils package: |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
115 |
DEF_OBJCOPY=/usr/sfw/bin/gobjcopy |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
116 |
ifeq ($(PLATFORM)-$(LIBARCH), solaris-amd64) |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
117 |
# On Solaris AMD64/X64, gobjcopy is not happy and fails: |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
118 |
# |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
119 |
# usr/sfw/bin/gobjcopy --add-gnu-debuglink=<lib>.debuginfo <lib>.so |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
120 |
# BFD: stKPaiop: Not enough room for program headers, try linking with -N |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
121 |
# /usr/sfw/bin/gobjcopy: stKPaiop: Bad value |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
122 |
# BFD: stKPaiop: Not enough room for program headers, try linking with -N |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
123 |
# /usr/sfw/bin/gobjcopy: libsaproc.debuginfo: Bad value |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
124 |
# BFD: stKPaiop: Not enough room for program headers, try linking with -N |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
125 |
# /usr/sfw/bin/gobjcopy: stKPaiop: Bad value |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
126 |
_JUNK_ := $(shell \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
127 |
echo >&2 "INFO: $(DEF_OBJCOPY) is not working on Solaris AMD64/X64") |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
128 |
OBJCOPY= |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
129 |
else |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
130 |
OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY)) |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
131 |
ifneq ($(ALT_OBJCOPY),) |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
132 |
_JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)") |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
133 |
# disable .debuginfo support by setting ALT_OBJCOPY to a non-existent path |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
134 |
OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY)) |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
135 |
endif |
10603
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9350
diff
changeset
|
136 |
endif |
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9350
diff
changeset
|
137 |
|
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
138 |
# Setting ENABLE_FULL_DEBUG_SYMBOLS=1 (and OBJCOPY) above enables the |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
139 |
# JDK build to import .debuginfo or .diz files from the HotSpot build. |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
140 |
# However, adding FDS support to the JDK build will occur in phases |
12427 | 141 |
# so a different make variable (LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS |
142 |
# and PROGRAM_SUPPORTS_FULL_DEBUG_SYMBOLS) is used to indicate that a |
|
143 |
# particular library or program supports FDS. |
|
10603
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9350
diff
changeset
|
144 |
|
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
145 |
ifeq ($(OBJCOPY),) |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
146 |
_JUNK_ := $(shell \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
147 |
echo >&2 "INFO: no objcopy cmd found so cannot create .debuginfo files.") |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
148 |
ENABLE_FULL_DEBUG_SYMBOLS=0 |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
149 |
else |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
150 |
_JUNK_ := $(shell \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
151 |
echo >&2 "INFO: $(OBJCOPY) cmd found so will create .debuginfo files.") |
10603
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9350
diff
changeset
|
152 |
|
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
153 |
# Library stripping policies for .debuginfo configs: |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
154 |
# all_strip - strips everything from the library |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
155 |
# min_strip - strips most stuff from the library; leaves minimum symbols |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
156 |
# no_strip - does not strip the library at all |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
157 |
# |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
158 |
# Oracle security policy requires "all_strip". A waiver was granted on |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
159 |
# 2011.09.01 that permits using "min_strip" in the Java JDK and Java JRE. |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
160 |
# |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
161 |
# |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
162 |
# Currently, STRIP_POLICY is only used when Full Debug Symbols is enabled. |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
163 |
STRIP_POLICY ?= min_strip |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
164 |
|
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
165 |
_JUNK_ := $(shell \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
166 |
echo >&2 "INFO: STRIP_POLICY=$(STRIP_POLICY)") |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
167 |
|
12307
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
168 |
# HACK: disable ZIP_DEBUGINFO_FILES by default until install repo |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
169 |
# changes are promoted |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
170 |
ZIP_DEBUGINFO_FILES ?= 0 |
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
171 |
|
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
172 |
_JUNK_ := $(shell \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
173 |
echo >&2 "INFO: ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES)") |
10603
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9350
diff
changeset
|
174 |
endif |
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9350
diff
changeset
|
175 |
endif |
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9350
diff
changeset
|
176 |
|
2 | 177 |
# |
178 |
# Java default optimization (-x04/-O2) etc. Applies to the VM. |
|
179 |
# |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
180 |
ifndef OPTIMIZATION_LEVEL |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
181 |
ifeq ($(PRODUCT), java) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
182 |
OPTIMIZATION_LEVEL = HIGHER |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
183 |
else |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
184 |
OPTIMIZATION_LEVEL = LOWER |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
185 |
endif |
2 | 186 |
endif |
2398
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
919
diff
changeset
|
187 |
ifndef FASTDEBUG_OPTIMIZATION_LEVEL |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
919
diff
changeset
|
188 |
FASTDEBUG_OPTIMIZATION_LEVEL = LOWER |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
919
diff
changeset
|
189 |
endif |
2 | 190 |
|
191 |
# |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
192 |
# If -Xa is in CFLAGS_COMMON it will end up ahead of $(CC_OPT) for the |
2 | 193 |
# optimized build, and that ordering of the flags completely freaks |
194 |
# out cc. Hence, -Xa is instead in each CFLAGS variant. |
|
195 |
# |
|
196 |
# The more unusual options to the Sun C compiler: |
|
197 |
# -v Stricter type checking, more error checking |
|
198 |
# (To turn ALL warnings into fatals, use -errwarn=%all) |
|
199 |
# -xstrconst Place string literals and constants in read-only area |
|
200 |
# (means you can't write on your string literals) |
|
201 |
# -xs Force debug information (stabs) into the .so or a.out |
|
202 |
# (makes the library/executable debuggable without the |
|
203 |
# .o files needing to be around, but at a space cost) |
|
204 |
# -g & -O If you add the -g option to the optimized compiles |
|
205 |
# you will get better stack retraces, the code is |
|
206 |
# still optimized. This includes a space cost too. |
|
207 |
# -xc99=%none Do NOT allow for c99 extensions to be used. |
|
208 |
# e.g. declarations must precede statements |
|
209 |
# -xCC Allow the C++ style of comments in C: // |
|
210 |
# Required with many of the source files. |
|
211 |
# -mt Assume multi-threaded (important) |
|
212 |
# |
|
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
213 |
# The more unusual options to the Sun C compiler: |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
214 |
# +w Print more warnings |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
215 |
# +w2 Maximum warnings |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
216 |
# |
2 | 217 |
|
218 |
# |
|
219 |
# Debug flag for C and C++ compiler |
|
220 |
# |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
221 |
CFLAGS_DEBUG_OPTION = -g $(CC_OPT/NONE) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
222 |
CXXFLAGS_DEBUG_OPTION = -g $(CXX_OPT/NONE) |
2 | 223 |
|
224 |
# Turn off -g if we are doing tcov build |
|
225 |
ifdef TCOV_BUILD |
|
226 |
CFLAGS_DEBUG_OPTION= |
|
227 |
CXXFLAGS_DEBUG_OPTION= |
|
228 |
endif |
|
229 |
||
230 |
# FASTDEBUG: Optimize the -g builds, gives us a faster debug java |
|
231 |
# If true adds -O to the debug compiles. This allows for any assert |
|
232 |
# tests to remain and debug checking. The resulting code is faster |
|
233 |
# but less debuggable. Stack traces are still valid, although only |
|
234 |
# approximate line numbers are given. Printing of local variables |
|
235 |
# during a debugging session is not possible, but stepping and |
|
236 |
# printing of global or static variables should be possible. |
|
237 |
# Performance/size of files should be about the same, maybe smaller. |
|
238 |
# |
|
239 |
ifeq ($(FASTDEBUG), true) |
|
2398
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
919
diff
changeset
|
240 |
CFLAGS_DEBUG_OPTION = -g $(CC_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL)) |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
919
diff
changeset
|
241 |
CXXFLAGS_DEBUG_OPTION = -g0 $(CXX_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL)) |
2 | 242 |
endif |
243 |
||
12427 | 244 |
# If Full Debug Symbols is enabled, then we want the same debug and |
245 |
# optimization flags as used by FASTDEBUG. We also want all the |
|
246 |
# debug info in one place (-xs). |
|
247 |
# |
|
248 |
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
|
249 |
ifeq ($(LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS),1) |
|
250 |
ifeq ($(VARIANT), OPT) |
|
251 |
CC_OPT = -g -xs $(CC_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL)) |
|
252 |
CXX_OPT = -g0 -xs $(CXX_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL)) |
|
253 |
endif |
|
254 |
CFLAGS_DEBUG_OPTION += -xs |
|
255 |
CXXFLAGS_DEBUG_OPTION += -xs |
|
256 |
endif |
|
257 |
endif |
|
258 |
||
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
259 |
CFLAGS_COMMON = -L$(OBJDIR) |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
260 |
|
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
261 |
# Do not allow C99 language features like declarations in code etc. |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
262 |
CFLAGS_COMMON += -xc99=%none |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
263 |
|
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
264 |
# Allow C++ comments in C code |
2 | 265 |
CFLAGS_COMMON += -xCC |
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
266 |
|
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
267 |
# Show error message tags on errors |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
268 |
CFLAGS_COMMON += -errshort=tags |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
269 |
CXXFLAGS_COMMON += -errtags=yes |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
270 |
|
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
271 |
# Optimization flags |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
272 |
CFLAGS_OPT = $(CC_OPT) |
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
273 |
|
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
274 |
# Debug version flags |
2 | 275 |
CFLAGS_DBG = $(CFLAGS_DEBUG_OPTION) |
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
276 |
|
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
277 |
# Required C compiler flags |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
278 |
CFLAGS_COMMON += -Xa $(CFLAGS_REQUIRED) |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
279 |
|
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
280 |
# Maximum warnings all the time |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
281 |
CXXFLAGS_COMMON += +w |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
282 |
CFLAGS_COMMON += -v |
2 | 283 |
|
284 |
# Assume MT behavior all the time (important) |
|
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
285 |
CXXFLAGS_COMMON += -mt |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
286 |
CFLAGS_COMMON += -mt |
2 | 287 |
|
288 |
# Assume no C++ exceptions are used |
|
289 |
CXXFLAGS_COMMON += -features=no%except -DCC_NOEX |
|
290 |
||
291 |
# For C++, these options tell it to assume nothing about locating libraries |
|
292 |
# either at compile time, or at runtime. Use of these options will likely |
|
293 |
# require the use of -L and -R options to indicate where libraries will |
|
294 |
# be found at compile time (-L) and at runtime (-R). |
|
295 |
# The /usr/lib location comes for free, so no need to specify that one. |
|
296 |
# Note: C is much simplier and there is no need for these options. This |
|
297 |
# is mostly needed to avoid dependencies on libraries in the |
|
298 |
# Compiler install area, also see LIBCXX and LIBM. |
|
299 |
CXXFLAGS_COMMON += -norunpath -xnolib |
|
300 |
||
301 |
# |
|
302 |
# Treat compiler warnings as errors, if requested |
|
303 |
# |
|
304 |
ifeq ($(COMPILER_WARNINGS_FATAL),true) |
|
305 |
CFLAGS_COMMON += -errwarn=%all |
|
306 |
CXXFLAGS_COMMON += -errwarn=%all |
|
307 |
endif |
|
308 |
||
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
309 |
CXXFLAGS_OPT = $(CXX_OPT) |
2 | 310 |
CXXFLAGS_DBG = $(CXXFLAGS_DEBUG_OPTION) |
311 |
CXXFLAGS_COMMON += $(CFLAGS_REQUIRED) |
|
312 |
||
313 |
# Add -xstrconst to the library compiles. This forces all string |
|
314 |
# literals into the read-only data section, which prevents them from |
|
315 |
# being written to and increases the runtime pages shared on the system. |
|
316 |
# |
|
317 |
ifdef LIBRARY |
|
318 |
CFLAGS_COMMON +=-xstrconst |
|
319 |
endif |
|
320 |
||
321 |
# Source browser database |
|
322 |
# |
|
323 |
# COMPILE_WITH_SB |
|
324 |
# If defined adds -xsb to compiles and creates a |
|
325 |
# source browsing database during compilation. |
|
326 |
# |
|
327 |
ifdef COMPILE_WITH_SB |
|
328 |
ifeq ($(LIBRARY), java) |
|
329 |
CFLAGS_DBG += -xsb |
|
330 |
endif |
|
331 |
endif |
|
332 |
||
333 |
# Lint Flags: |
|
334 |
# -Xa ANSI C plus K&R, favor ANSI rules |
|
335 |
# -fd report on old style func defs |
|
336 |
# -errchk=structarg report on 64bit struct args by value |
|
337 |
# -errchk=longptr64 report on 64bit to 32bit issues (ignores casts) |
|
338 |
# -errchk=parentheses report on suggested use of extra parens |
|
339 |
# -v suppress unused args |
|
340 |
# -x suppress unused externs |
|
341 |
# -u suppress extern func/vars used/defined |
|
342 |
# -errfmt=simple use one line errors with position info |
|
642
d1f02d5e4c74
6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles)
ohair
parents:
30
diff
changeset
|
343 |
# $(LINT_XARCH_OPTION) See Compiler-sun.gwk |
2 | 344 |
|
345 |
LINTFLAGS_COMMON = -Xa |
|
346 |
LINTFLAGS_COMMON += -fd |
|
347 |
LINTFLAGS_COMMON += -errchk=structarg,longptr64,parentheses |
|
348 |
LINTFLAGS_COMMON += -v |
|
349 |
LINTFLAGS_COMMON += -x |
|
350 |
LINTFLAGS_COMMON += -u |
|
351 |
LINTFLAGS_COMMON += -errfmt=simple |
|
352 |
LINTFLAGS_OPT = |
|
353 |
LINTFLAGS_DBG = |
|
354 |
||
355 |
# The -W0,-noglobal tells the compiler to NOT generate mangled global |
|
356 |
# ELF data symbols for file local static data. |
|
357 |
# This can break fix&continue, but we'd rather do the same compilations |
|
358 |
# for deliverable bits as we do for non-deliverable bits |
|
359 |
# Tell the compilers to never generate globalized names, all the time. |
|
360 |
CFLAGS_COMMON += -W0,-noglobal |
|
361 |
||
642
d1f02d5e4c74
6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles)
ohair
parents:
30
diff
changeset
|
362 |
# If we have a specific arch value to use, add it |
d1f02d5e4c74
6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles)
ohair
parents:
30
diff
changeset
|
363 |
CFLAGS_COMMON += $(XARCH_OPTION) |
d1f02d5e4c74
6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles)
ohair
parents:
30
diff
changeset
|
364 |
CXXFLAGS_COMMON += $(XARCH_OPTION) |
d1f02d5e4c74
6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles)
ohair
parents:
30
diff
changeset
|
365 |
ASFLAGS_COMMON += $(AS_XARCH_OPTION) |
d1f02d5e4c74
6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles)
ohair
parents:
30
diff
changeset
|
366 |
EXTRA_LIBS += $(XARCH_OPTION) |
d1f02d5e4c74
6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles)
ohair
parents:
30
diff
changeset
|
367 |
LINTFLAGS_COMMON += $(LINT_XARCH_OPTION) |
2 | 368 |
|
369 |
# |
|
370 |
# uncomment the following to build with PERTURBALOT set |
|
371 |
# |
|
372 |
# OTHER_CFLAGS += -DPERTURBALOT |
|
373 |
# |
|
374 |
||
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
375 |
CPPFLAGS_COMMON = -D__solaris__ -D$(ARCH_FAMILY) |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
376 |
CPPFLAGS_OPT = -DNDEBUG |
2 | 377 |
CPPFLAGS_DBG = -DDEBUG |
378 |
||
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
379 |
ifneq ($(PRODUCT), java) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
380 |
CPPFLAGS_DBG += -DLOGGING -DDBINFO |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
381 |
endif |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
382 |
|
2 | 383 |
ifeq ($(ARCH_FAMILY), i586) |
384 |
# The macro _LITTLE_ENDIAN needs to be defined the same to avoid the |
|
385 |
# Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN |
|
386 |
# (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). |
|
387 |
# Note: -Dmacro is the same as #define macro 1 |
|
388 |
# -Dmacro= is the same as #define macro |
|
389 |
# |
|
390 |
CPPFLAGS_COMMON += -DcpuIntel -D_LITTLE_ENDIAN= -D$(LIBARCH) |
|
391 |
# Turn off a superfluous compiler error message on Intel |
|
392 |
CFLAGS_COMMON += -erroff=E_BAD_PRAGMA_PACK_VALUE |
|
393 |
endif |
|
394 |
||
395 |
# Java memory management is based on memory mapping by default, but a |
|
396 |
# system only assuming malloc/free can be built by adding -DUSE_MALLOC |
|
397 |
||
398 |
CPPFLAGS_COMMON += -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS |
|
399 |
CPPFLAGS_OPT += -DTRIMMED |
|
400 |
||
401 |
LDFLAGS_DEFS_OPTION = -z defs |
|
402 |
LDFLAGS_COMMON += $(LDFLAGS_DEFS_OPTION) |
|
403 |
||
404 |
# |
|
405 |
# -L paths for finding and -ljava |
|
406 |
# |
|
407 |
LDFLAGS_COMMON += -L$(LIBDIR)/$(LIBARCH) |
|
408 |
LDFLAGS_OPT = |
|
409 |
LDFLAGS_DBG = |
|
410 |
||
411 |
# |
|
412 |
# We never really want the incremental linker, ever |
|
413 |
# The -xildoff option tells Sun's compilers to NOT use incremental linker |
|
414 |
# |
|
415 |
LDFLAGS_COMMON += -xildoff |
|
416 |
||
417 |
ifdef LIBRARY |
|
418 |
# Libraries need to locate other libraries at runtime, and you can tell |
|
419 |
# a library where to look by way of the dynamic runpaths (RPATH or RUNPATH) |
|
420 |
# buried inside the .so. The $ORIGIN says to look relative to where |
|
421 |
# the library itself is and it can be followed with relative paths from |
|
422 |
# that. By default we always look in $ORIGIN, optionally we add relative |
|
423 |
# paths if the Makefile sets LD_RUNPATH_EXTRAS to those relative paths. |
|
424 |
# The environment variable LD_LIBRARY_PATH will over-ride these runpaths. |
|
425 |
# Try: 'dump -Lv lib*.so' to see these settings in a library. |
|
426 |
# |
|
427 |
LDFLAGS_COMMON += -R\$$ORIGIN |
|
428 |
LDFLAGS_COMMON += $(LD_RUNPATH_EXTRAS:%=-R\$$ORIGIN/%) |
|
429 |
endif |
|
430 |
||
431 |
EXTRA_LIBS += -lc |
|
432 |
||
433 |
# Postprocessing is done on the images directories only |
|
434 |
# |
|
435 |
ifeq ($(VARIANT), OPT) |
|
436 |
ifeq ($(PARTIAL_GPROF), true) |
|
437 |
NO_STRIP = true |
|
438 |
endif |
|
439 |
ifeq ($(GPROF), true) |
|
440 |
NO_STRIP = true |
|
441 |
endif |
|
442 |
ifneq ($(NO_STRIP), true) |
|
443 |
# Debug 'strip -x' leaves local function Elf symbols (better stack traces) |
|
444 |
POST_STRIP_PROCESS = $(STRIP) -x |
|
445 |
endif |
|
446 |
endif |
|
447 |
POST_MCS_PROCESS=$(MCS) -d -a "JDK $(FULL_VERSION)" |
|
448 |
||
449 |
# |
|
450 |
# Sun C compiler will take -M and pass it on to ld. |
|
451 |
# Usage: ld $(LD_MAPFILE_FLAG) mapfile *.o |
|
452 |
# |
|
453 |
ifeq ($(CC_VERSION),gcc) |
|
454 |
LD_MAPFILE_FLAG = -Xlinker -M -Xlinker |
|
455 |
else |
|
456 |
LD_MAPFILE_FLAG = -M |
|
457 |
endif |
|
458 |
||
459 |
# |
|
460 |
# Variables globally settable from the make command line (default |
|
461 |
# values in brackets): |
|
462 |
# GPROF (false) |
|
463 |
# Eg: % gnumake GPROF=true |
|
464 |
GPROF = false |
|
465 |
ifeq ($(GPROF), true) |
|
466 |
CFLAGS_COMMON += -DGPROF -xpg |
|
467 |
EXTRA_LIBS += -xpg |
|
468 |
endif |
|
469 |
||
470 |
# PARTIAL_GPROF is to be used ONLY during compilation - it should not |
|
471 |
# appear during linking of libraries or programs. It also should |
|
472 |
# prevent linking with -z defs to allow a symbol to remain undefined. |
|
473 |
# |
|
474 |
PARTIAL_GPROF = false |
|
475 |
ifeq ($(PARTIAL_GPROF), true) |
|
476 |
CFLAGS_GPROF += -xpg |
|
477 |
LDFLAGS_DEFS_OPTION = -z nodefs |
|
478 |
endif |
|
479 |
||
480 |
# |
|
481 |
# For a TCOV build we add in the TCOV_OPTION |
|
482 |
# |
|
483 |
ifdef TCOV_BUILD |
|
484 |
TCOV_OPTION = -xprofile=tcov |
|
485 |
LDFLAGS_COMMON += $(TCOV_OPTION) -Kpic |
|
486 |
CFLAGS_COMMON += $(TCOV_OPTION) |
|
487 |
CXXFLAGS_COMMON += $(TCOV_OPTION) |
|
488 |
EXTRA_LIBS += $(TCOV_OPTION) |
|
489 |
LDNOMAP=true |
|
490 |
endif |
|
491 |
||
492 |
# |
|
493 |
# Solaris only uses native threads. |
|
494 |
# |
|
495 |
THREADS_FLAG= native |
|
496 |
THREADS_DIR= threads |
|
497 |
||
498 |
# |
|
499 |
# Support for Quantify. |
|
500 |
# |
|
501 |
ifdef QUANTIFY |
|
502 |
QUANTIFY_CMD = quantify |
|
503 |
QUANTIFY_OPTIONS = -cache-dir=/tmp/quantify -always-use-cache-dir=yes |
|
504 |
LINK_PRE_CMD = $(QUANTIFY_CMD) $(QUANTIFY_OPTIONS) |
|
505 |
ifdef LIBRARY |
|
506 |
CFLAGS_COMMON += -K PIC |
|
507 |
endif |
|
508 |
endif |
|
509 |
||
510 |
# |
|
511 |
# Support for Purify. |
|
512 |
# |
|
513 |
ifdef PURIFY |
|
514 |
PURIFY_CMD = /net/suntools.eng/export/tools/sparc/bin/purify |
|
515 |
PURIFY_OPTIONS = -cache-dir=/tmp/quantify -always-use-cache-dir=yes |
|
516 |
LINK_PRE_CMD = $(PURIFY_CMD) $(PURIFY_OPTIONS) |
|
517 |
ifdef LIBRARY |
|
518 |
CFLAGS_COMMON += -K PIC |
|
519 |
endif |
|
520 |
endif |
|
521 |
||
522 |
# |
|
523 |
# Different "levels" of optimization. |
|
524 |
# |
|
525 |
ifeq ($(CC_VERSION),gcc) |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
526 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
527 |
CC_OPT/NONE = |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
528 |
CC_OPT/LOWER = -O2 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
529 |
CC_OPT/HIGHER = -O3 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
530 |
CC_OPT/HIGHEST = -O3 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
531 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
532 |
CXX_OPT/NONE = |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
533 |
CXX_OPT/LOWER = -O2 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
534 |
CXX_OPT/HIGHER = -O3 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
535 |
CXX_OPT/HIGHEST = -O3 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
536 |
|
2 | 537 |
CFLAGS_REQUIRED_i586 += -fno-omit-frame-pointer |
538 |
CFLAGS_REQUIRED_amd64 += -fno-omit-frame-pointer |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
539 |
|
2 | 540 |
# Automatic precompiled header option to use (if COMPILE_APPROACH=batch) |
541 |
# (See Rules.gmk) May need to wait for gcc 5? |
|
542 |
AUTOMATIC_PCH_OPTION = |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
543 |
|
2 | 544 |
else |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
545 |
|
2 | 546 |
# Highest could be -xO5, but indications are that -xO5 should be reserved |
547 |
# for a per-file use, on sources with known performance impacts. |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
548 |
OPT_LEVEL/LOWER = 2 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
549 |
OPT_LEVEL/HIGHER = 4 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
550 |
OPT_LEVEL/HIGHEST = 4 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
551 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
552 |
CC_OPT/NONE = |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
553 |
CC_OPT/LOWER = $(OPT_LEVEL/LOWER:%=-xO%) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
554 |
CC_OPT/HIGHER = $(OPT_LEVEL/HIGHER:%=-xO%) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
555 |
CC_OPT/HIGHEST = $(OPT_LEVEL/HIGHEST:%=-xO%) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
556 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
557 |
CXX_OPT/NONE = |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
558 |
CXX_OPT/LOWER = $(OPT_LEVEL/LOWER:%=-xO%) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
559 |
CXX_OPT/HIGHER = $(OPT_LEVEL/HIGHER:%=-xO%) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
560 |
CXX_OPT/HIGHEST = $(OPT_LEVEL/HIGHEST:%=-xO%) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
561 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
562 |
# We need stack frames at all times |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
563 |
USE_XKEEPFRAME_OPTION = false |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
564 |
ifeq ($(USE_XKEEPFRAME_OPTION),true) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
565 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
566 |
# Unknown spelling on this option at this time (Maybe in SS13?) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
567 |
CC_XKEEPFRAME_OPTIONS = -xkeepframe |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
568 |
CXX_XKEEPFRAME_OPTIONS = -xkeepframe |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
569 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
570 |
else |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
571 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
572 |
# On X86, make sure tail call optimization is off |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
573 |
# The z and y are the tail call optimizations. |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
574 |
ifeq ($(ARCH_FAMILY), i586) |
9350
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
575 |
CC_NEWER_THAN_58 := \ |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
576 |
$(shell $(EXPR) $(CC_MAJORVER) \> 5 \| \ |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
577 |
\( $(CC_MAJORVER) = 5 \& $(CC_MINORVER) \> 8 \) ) |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
578 |
ifeq ($(CC_NEWER_THAN_58),1) |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
579 |
# Somehow, tail call optimization is creeping in. |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
580 |
# Make sure it is off. |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
581 |
# WARNING: These may cause compiler warnings about duplicate -O options |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
582 |
CC_XKEEPFRAME_OPTIONS += -Wu,-O$(OPT_LEVEL/$(OPTIMIZATION_LEVEL))~yz |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
583 |
CXX_XKEEPFRAME_OPTIONS += -Qoption ube -O$(OPT_LEVEL/$(OPTIMIZATION_LEVEL))~yz |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
584 |
endif |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
585 |
endif |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
586 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
587 |
# On i586 we need to tell the code generator to ALWAYS use a |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
588 |
# frame pointer. |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
589 |
ifeq ($(ARCH_FAMILY), i586) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
590 |
# Note that in 5.7, this is done with -xregs=no%frameptr |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
591 |
ifeq ($(CC_VER), 5.5) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
592 |
# It's not exactly clear when this optimization kicks in, the |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
593 |
# current assumption is -xO4 or greater and for C++ with |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
594 |
# the -features=no%except option and -xO4 and greater. |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
595 |
# Bottom line is, we ALWAYS want a frame pointer! |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
596 |
CC_XKEEPFRAME_OPTIONS += -Wu,-Z~B |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
597 |
CXX_XKEEPFRAME_OPTIONS += -Qoption ube -Z~B |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
598 |
endif |
7485
e9e65ce0013a
6980281: SWAT: SwingSet2 got core dumped in Solaris-AMD64 using b107 swat build
bae
parents:
5801
diff
changeset
|
599 |
|
9350
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
600 |
CC_NEWER_THAN_56 := \ |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
601 |
$(shell $(EXPR) $(CC_MAJORVER) \> 5 \| \ |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
602 |
\( $(CC_MAJORVER) = 5 \& $(CC_MINORVER) \> 6 \) ) |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
603 |
ifeq ($(CC_NEWER_THAN_56),1) |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
604 |
# Do NOT use frame pointer register as a general purpose opt register |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
605 |
CC_OPT/NONE += -xregs=no%frameptr |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
606 |
CXX_OPT/NONE += -xregs=no%frameptr |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
607 |
CC_XKEEPFRAME_OPTIONS += -xregs=no%frameptr |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
608 |
CXX_XKEEPFRAME_OPTIONS += -xregs=no%frameptr |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
609 |
endif |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
610 |
endif |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
611 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
612 |
# Optimizer for sparc needs to be told not to do certain things |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
613 |
# related to frames or save instructions. |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
614 |
ifeq ($(ARCH_FAMILY), sparc) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
615 |
# Do not use save instructions instead of add instructions |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
616 |
# This was an optimization starting in SC5.0 that made it hard for us to |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
617 |
# find the "save" instruction (which got turned into an "add") |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
618 |
CC_XKEEPFRAME_OPTIONS += -Wc,-Qrm-s |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
619 |
CXX_XKEEPFRAME_OPTIONS += -Qoption cg -Qrm-s |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
620 |
# Don't allow tail call code optimization. Started in SC5.0. |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
621 |
# We don't like code of this form: |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
622 |
# save |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
623 |
# <code> |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
624 |
# call foo |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
625 |
# restore |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
626 |
# because we can't tell if the method will have a stack frame |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
627 |
# and register windows or not. |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
628 |
CC_XKEEPFRAME_OPTIONS += -Wc,-Qiselect-T0 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
629 |
CXX_XKEEPFRAME_OPTIONS += -Qoption cg -Qiselect-T0 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
630 |
endif |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
631 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
632 |
endif |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
633 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
634 |
# Extra options used with HIGHEST |
2 | 635 |
# |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
636 |
# WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be |
2 | 637 |
# done with care, there are some assumptions below that need to |
638 |
# be understood about the use of pointers, and IEEE behavior. |
|
639 |
# |
|
640 |
# Use non-standard floating point mode (not IEEE 754) |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
641 |
CC_HIGHEST_EXTRAS += -fns |
2 | 642 |
# Do some simplification of floating point arithmetic (not IEEE 754) |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
643 |
CC_HIGHEST_EXTRAS += -fsimple |
2 | 644 |
# Use single precision floating point with 'float' |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
645 |
CC_HIGHEST_EXTRAS += -fsingle |
2 | 646 |
# Assume memory references via basic pointer types do not alias |
647 |
# (Source with excessing pointer casting and data access with mixed |
|
648 |
# pointer types are not recommended) |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
649 |
CC_HIGHEST_EXTRAS += -xalias_level=basic |
2 | 650 |
# Use intrinsic or inline versions for math/std functions |
651 |
# (If you expect perfect errno behavior, do not use this) |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
652 |
CC_HIGHEST_EXTRAS += -xbuiltin=%all |
2 | 653 |
# Loop data dependency optimizations (need -xO3 or higher) |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
654 |
CC_HIGHEST_EXTRAS += -xdepend |
2 | 655 |
# Pointer parameters to functions do not overlap |
656 |
# (Similar to -xalias_level=basic usage, but less obvious sometimes. |
|
657 |
# If you pass in multiple pointers to the same data, do not use this) |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
658 |
CC_HIGHEST_EXTRAS += -xrestrict |
2 | 659 |
# Inline some library routines |
660 |
# (If you expect perfect errno behavior, do not use this) |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
661 |
CC_HIGHEST_EXTRAS += -xlibmil |
2 | 662 |
# Use optimized math routines |
663 |
# (If you expect perfect errno behavior, do not use this) |
|
664 |
# Can cause undefined external on Solaris 8 X86 on __sincos, removing for now |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
665 |
# CC_HIGHEST_EXTRAS += -xlibmopt |
2 | 666 |
ifeq ($(ARCH_FAMILY), sparc) |
667 |
# Assume at most 8byte alignment, raise SIGBUS on error |
|
668 |
### Presents an ABI issue with customer JNI libs? |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
669 |
####CC_HIGHEST_EXTRAS += -xmemalign=8s |
2 | 670 |
# Automatic prefetch instructions, explicit prefetch macros |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
671 |
CC_HIGHEST_EXTRAS += -xprefetch=auto,explicit |
2 | 672 |
# Pick ultra as the chip to optimize to |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
673 |
CC_HIGHEST_EXTRAS += -xchip=ultra |
2 | 674 |
endif |
675 |
ifeq ($(ARCH), i586) |
|
676 |
# Pick pentium as the chip to optimize to |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
677 |
CC_HIGHEST_EXTRAS += -xchip=pentium |
2 | 678 |
endif |
679 |
ifdef LIBRARY |
|
680 |
# The Solaris CBE (Common Build Environment) requires that the use |
|
681 |
# of appl registers be disabled when compiling a public library (or |
|
682 |
# a library that's loaded by a public library) on sparc. |
|
683 |
CFLAGS_REQUIRED_sparc += -xregs=no%appl |
|
684 |
CFLAGS_REQUIRED_sparcv9 += -xregs=no%appl |
|
685 |
endif |
|
9350
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
686 |
CC_NEWER_THAN_56 := \ |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
687 |
$(shell $(EXPR) $(CC_MAJORVER) \> 5 \| \ |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
688 |
\( $(CC_MAJORVER) = 5 \& $(CC_MINORVER) \> 6 \) ) |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
9035
diff
changeset
|
689 |
ifeq ($(CC_NEWER_THAN_56),1) |
2 | 690 |
# Presents an ABI issue with customer JNI libs? We must be able to |
691 |
# to handle 4byte aligned objects? (rare occurance, but possible?) |
|
692 |
CFLAGS_REQUIRED_sparc += -xmemalign=4s |
|
693 |
endif |
|
694 |
# Just incase someone trys to use the SOS9 compilers |
|
695 |
ifeq ($(CC_VER), 5.6) |
|
696 |
# We MUST allow data alignment of 4 for sparc (sparcv9 is ok at 8s) |
|
697 |
CFLAGS_REQUIRED_sparc += -xmemalign=4s |
|
698 |
endif |
|
699 |
# Automatic precompiled header option to use (if COMPILE_APPROACH=batch) |
|
700 |
# (See Rules.gmk) The SS11 -xpch=auto* options appear to be broken. |
|
701 |
AUTOMATIC_PCH_OPTION = |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
702 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
703 |
# Add in keep frame options |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
704 |
CC_OPT/LOWER += $(CC_XKEEPFRAME_OPTIONS) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
705 |
CC_OPT/HIGHER += $(CC_XKEEPFRAME_OPTIONS) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
706 |
CC_OPT/HIGHEST += $(CC_XKEEPFRAME_OPTIONS) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
707 |
CXX_OPT/LOWER += $(CXX_XKEEPFRAME_OPTIONS) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
708 |
CXX_OPT/HIGHER += $(CXX_XKEEPFRAME_OPTIONS) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
709 |
CXX_OPT/HIGHEST += $(CXX_XKEEPFRAME_OPTIONS) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
710 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
711 |
# Add in highest optimization settings |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
712 |
CC_OPT/HIGHEST += $(CC_HIGHEST_EXTRAS) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
713 |
CXX_OPT/HIGHEST += $(CC_HIGHEST_EXTRAS) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
714 |
|
2 | 715 |
endif |
716 |
||
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
717 |
# Default optimization settings based on level. |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
718 |
CC_OPT = $(CC_OPT/$(OPTIMIZATION_LEVEL)) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
719 |
CXX_OPT = $(CXX_OPT/$(OPTIMIZATION_LEVEL)) |
2 | 720 |
|
721 |
# Flags required all the time |
|
722 |
CFLAGS_REQUIRED = $(CFLAGS_REQUIRED_$(ARCH)) |
|
723 |
||
724 |
# |
|
725 |
# Path and option to link against the VM, if you have to. Note that |
|
726 |
# there are libraries that link against only -ljava, but they do get |
|
727 |
# -L to the -ljvm, this is because -ljava depends on -ljvm, whereas |
|
728 |
# the library itself should not. |
|
729 |
# |
|
730 |
VM_NAME = server |
|
731 |
JVMLIB = -L$(LIBDIR)/$(LIBARCH)/$(VM_NAME) -ljvm |
|
732 |
JAVALIB = -ljava $(JVMLIB) |
|
733 |
||
734 |
# Part of INCREMENTAL_BUILD mechanism. |
|
735 |
# Compiler emits things like: path/file.o: file.h |
|
736 |
# We want something like: relative_path/file.o relative_path/file.d: file.h |
|
737 |
# In addition on Solaris, any include file starting with / is deleted, |
|
738 |
# this gets rid of things like /usr/include files, which never change. |
|
739 |
CC_DEPEND = -xM1 |
|
740 |
CC_DEPEND_FILTER = $(SED) -e '/:[ ]*[/]/d' -e 's!$*\.$(OBJECT_SUFFIX)!$(dir $@)& $(dir $@)$*.$(DEPEND_SUFFIX)!g' | $(SORT) -u |
|
741 |
||
742 |
# Location of openwin libraries (do we really need this anymore?) |
|
743 |
OPENWIN_HOME = /usr/openwin |
|
744 |
OPENWIN_LIB = $(OPENWIN_HOME)/lib$(ISA_DIR) |
|
745 |
||
746 |
# Runtime graphics library search paths... |
|
747 |
OPENWIN_RUNTIME_LIB = /usr/openwin/lib$(ISA_DIR) |
|
748 |
AWT_RUNPATH = -R/usr/dt/lib$(ISA_DIR) -R$(OPENWIN_RUNTIME_LIB) |
|
749 |
||
750 |
# C++ Runtime library (libCrun.so), use instead of -lCrun. |
|
751 |
# Originally used instead of -lCrun to guarantee use of the system |
|
752 |
# .so version and not the .a or .so that came with the compilers. |
|
753 |
# With the newer compilers this could probably change back to -lCrun but |
|
754 |
# in general this is ok to continue to do. |
|
755 |
LIBCXX = /usr/lib$(ISA_DIR)/libCrun.so.1 |
|
756 |
||
5579
1a5e995a710b
6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents:
2398
diff
changeset
|
757 |
# JDK now requires Solaris 10, so pick up libm.so.2 |
1a5e995a710b
6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents:
2398
diff
changeset
|
758 |
LIBM = /usr/lib$(ISA_DIR)/libm.so.2 |
2 | 759 |
|
760 |
# Socket library |
|
761 |
LIBSOCKET = -lsocket |
|
762 |
||
5780 | 763 |
# Network Services library |
764 |
LIBNSL = -lnsl |
|
765 |
||
10700
31c24f40f614
7092679: (tz) Java getting wrong timezone/DST info on Solaris 11
okutsu
parents:
10603
diff
changeset
|
766 |
# service configuration facility library |
31c24f40f614
7092679: (tz) Java getting wrong timezone/DST info on Solaris 11
okutsu
parents:
10603
diff
changeset
|
767 |
LIBSCF = -lscf |
31c24f40f614
7092679: (tz) Java getting wrong timezone/DST info on Solaris 11
okutsu
parents:
10603
diff
changeset
|
768 |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11369
diff
changeset
|
769 |
# Dynamic Loading library |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11369
diff
changeset
|
770 |
LIBDL = -ldl |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11369
diff
changeset
|
771 |
|
2 | 772 |
# GLOBAL_KPIC: If set means all libraries are PIC, position independent code |
773 |
# EXCEPT for select compiles |
|
774 |
# If a .o file is compiled non-PIC then it should be forced |
|
775 |
# into the RW data segment with a mapfile option. This is done |
|
776 |
# with object files which generated from .s files. |
|
777 |
# The -ztext enforces that no relocations remain in the text segment |
|
778 |
# so that it remains purely read-only for optimum system performance. |
|
779 |
# Some libraries may use a smaller size (13bit -Kpic) on sparc instead of |
|
780 |
# (32 bit -KPIC) and will override GLOBAL_KPIC appropriately. |
|
781 |
# |
|
782 |
PIC_CODE_LARGE = -KPIC |
|
783 |
PIC_CODE_SMALL = -Kpic |
|
784 |
ifndef TCOV_BUILD |
|
785 |
GLOBAL_KPIC = $(PIC_CODE_LARGE) |
|
786 |
CXXFLAGS_COMMON += $(GLOBAL_KPIC) |
|
787 |
CFLAGS_COMMON += $(GLOBAL_KPIC) |
|
788 |
LDFLAGS_COMMON += -ztext |
|
789 |
endif # TCOV_BUILD |
|
790 |
||
791 |
# If your platform has DPS, it will have Type1 fonts too, in which case |
|
792 |
# it is best to enable DPS support until such time as 2D's rasteriser |
|
793 |
# can fully handle Type1 fonts in all cases. Default is "yes". |
|
794 |
# HAVE_DPS should only be "no" if the platform has no DPS headers or libs |
|
795 |
# DPS (Displayable PostScript) is available on Solaris machines |
|
796 |
||
797 |
HAVE_DPS = yes |
|
798 |
||
799 |
# |
|
800 |
# Japanese manpages |
|
801 |
# |
|
802 |
JA_SOURCE_ENCODING = eucJP |
|
803 |
JA_TARGET_ENCODINGS = eucJP UTF-8 PCK |
|
804 |
||
805 |
# Settings for the JDI - Serviceability Agent binding. |
|
806 |
HOTSPOT_SALIB_PATH = $(HOTSPOT_IMPORT_PATH)/jre/lib/$(LIBARCH) |
|
807 |
SALIB_NAME = $(LIB_PREFIX)saproc.$(LIBRARY_SUFFIX) |
|
10603
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9350
diff
changeset
|
808 |
SA_DEBUGINFO_NAME = $(LIB_PREFIX)saproc.debuginfo |
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
809 |
SA_DIZ_NAME = $(LIB_PREFIX)saproc.diz |
2 | 810 |
INCLUDE_SA=true |
811 |