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) 1999, 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 Linux. 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 overriden 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 |
||
43 |
# Get shared JDK settings |
|
44 |
include $(JDK_MAKE_SHARED_DIR)/Defs.gmk |
|
45 |
||
46 |
# Part of INCREMENTAL_BUILD mechanism. |
|
47 |
# Compiler emits things like: path/file.o: file.h |
|
48 |
# We want something like: relative_path/file.o relative_path/file.d: file.h |
|
49 |
CC_DEPEND = -MM |
|
50 |
CC_DEPEND_FILTER = $(SED) -e 's!$*\.$(OBJECT_SUFFIX)!$(dir $@)& $(dir $@)$*.$(DEPEND_SUFFIX)!g' |
|
51 |
||
52 |
ifndef PLATFORM_SRC |
|
30
7ea1edf98bfe
6668781: Openjdk windows cygwin build failure: no rule to make linker_md.obj target
ohair
parents:
2
diff
changeset
|
53 |
PLATFORM_SRC = $(BUILDDIR)/../src/solaris |
2 | 54 |
endif # PLATFORM_SRC |
55 |
||
12288
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
12047
diff
changeset
|
56 |
# Location of the various .properties files specific to Linux platform |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
12047
diff
changeset
|
57 |
ifndef PLATFORM_PROPERTIES |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
12047
diff
changeset
|
58 |
PLATFORM_PROPERTIES = $(BUILDDIR)/../src/solaris/lib |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
12047
diff
changeset
|
59 |
endif # PLATFORM_SRC |
30d13a7dd03f
7153735: [macosx] Text with diacritics is pasted with broken encoding
kizune
parents:
12047
diff
changeset
|
60 |
|
2 | 61 |
# Platform specific closed sources |
62 |
ifndef OPENJDK |
|
63 |
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
|
64 |
CLOSED_PLATFORM_SRC = $(BUILDDIR)/../src/closed/solaris |
2 | 65 |
endif |
66 |
endif |
|
67 |
||
68 |
# platform specific include files |
|
69 |
PLATFORM_INCLUDE_NAME = $(PLATFORM) |
|
70 |
PLATFORM_INCLUDE = $(INCLUDEDIR)/$(PLATFORM_INCLUDE_NAME) |
|
71 |
||
72 |
# suffix used for make dependencies files. |
|
73 |
DEPEND_SUFFIX = d |
|
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:
9371
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 GNU Binutils on Linux: |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
115 |
DEF_OBJCOPY=/usr/bin/objcopy |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
116 |
ifdef CROSS_COMPILE_ARCH |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
117 |
# don't try to generate .debuginfo files when cross compiling |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
118 |
_JUNK_ := $(shell \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
119 |
echo >&2 "INFO: cross compiling for ARCH $(CROSS_COMPILE_ARCH)," \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
120 |
"skipping .debuginfo generation.") |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
121 |
OBJCOPY= |
10603
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9371
diff
changeset
|
122 |
else |
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
123 |
OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY)) |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
124 |
ifneq ($(ALT_OBJCOPY),) |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
125 |
_JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)") |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
126 |
# 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
|
127 |
OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY)) |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
128 |
endif |
10603
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9371
diff
changeset
|
129 |
endif |
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9371
diff
changeset
|
130 |
|
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
131 |
# 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
|
132 |
# 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
|
133 |
# However, adding FDS support to the JDK build will occur in phases |
12427 | 134 |
# so a different make variable (LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS |
135 |
# and PROGRAM_SUPPORTS_FULL_DEBUG_SYMBOLS) is used to indicate that a |
|
136 |
# particular library or program supports FDS. |
|
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
137 |
|
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
138 |
ifeq ($(OBJCOPY),) |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
139 |
_JUNK_ := $(shell \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
140 |
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
|
141 |
ENABLE_FULL_DEBUG_SYMBOLS=0 |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
142 |
else |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
143 |
_JUNK_ := $(shell \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
144 |
echo >&2 "INFO: $(OBJCOPY) cmd found so will create .debuginfo files.") |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
145 |
|
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
146 |
# Library stripping policies for .debuginfo configs: |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
147 |
# all_strip - strips everything from the library |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
148 |
# 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
|
149 |
# no_strip - does not strip the library at all |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
150 |
# |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
151 |
# 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
|
152 |
# 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
|
153 |
# |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
154 |
# 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
|
155 |
STRIP_POLICY ?= min_strip |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
156 |
|
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
157 |
_JUNK_ := $(shell \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
158 |
echo >&2 "INFO: STRIP_POLICY=$(STRIP_POLICY)") |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
159 |
|
12307
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
160 |
# 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
|
161 |
# changes are promoted |
b34445ac110f
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
12293
diff
changeset
|
162 |
ZIP_DEBUGINFO_FILES ?= 0 |
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
163 |
|
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
164 |
_JUNK_ := $(shell \ |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
165 |
echo >&2 "INFO: ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES)") |
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
166 |
endif |
10603
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9371
diff
changeset
|
167 |
endif |
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9371
diff
changeset
|
168 |
|
2 | 169 |
# |
170 |
# Default optimization |
|
171 |
# |
|
172 |
||
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
173 |
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
|
174 |
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
|
175 |
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
|
176 |
else |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
177 |
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
|
178 |
endif |
2 | 179 |
endif |
2398
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2158
diff
changeset
|
180 |
ifndef FASTDEBUG_OPTIMIZATION_LEVEL |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2158
diff
changeset
|
181 |
FASTDEBUG_OPTIMIZATION_LEVEL = LOWER |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2158
diff
changeset
|
182 |
endif |
2 | 183 |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
184 |
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
|
185 |
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
|
186 |
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
|
187 |
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
|
188 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
189 |
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
|
190 |
|
2 | 191 |
# For all platforms, do not omit the frame pointer register usage. |
192 |
# We need this frame pointer to make it easy to walk the stacks. |
|
193 |
# This should be the default on X86, but ia64 and amd64 may not have this |
|
194 |
# as the default. |
|
195 |
CFLAGS_REQUIRED_amd64 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN |
|
196 |
CFLAGS_REQUIRED_i586 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN |
|
197 |
CFLAGS_REQUIRED_ia64 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN |
|
198 |
CFLAGS_REQUIRED_sparcv9 += -m64 -mcpu=v9 |
|
199 |
LDFLAGS_COMMON_sparcv9 += -m64 -mcpu=v9 |
|
200 |
CFLAGS_REQUIRED_sparc += -m32 -mcpu=v9 |
|
201 |
LDFLAGS_COMMON_sparc += -m32 -mcpu=v9 |
|
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
202 |
CFLAGS_REQUIRED_arm += -fsigned-char -D_LITTLE_ENDIAN |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
203 |
CFLAGS_REQUIRED_ppc += -fsigned-char -D_BIG_ENDIAN |
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
204 |
ifeq ($(ZERO_BUILD), true) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
205 |
CFLAGS_REQUIRED = $(ZERO_ARCHFLAG) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
206 |
ifeq ($(ZERO_ENDIANNESS), little) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
207 |
CFLAGS_REQUIRED += -D_LITTLE_ENDIAN |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
208 |
endif |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
209 |
LDFLAGS_COMMON += $(ZERO_ARCHFLAG) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
210 |
else |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
211 |
CFLAGS_REQUIRED = $(CFLAGS_REQUIRED_$(ARCH)) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
212 |
LDFLAGS_COMMON += $(LDFLAGS_COMMON_$(ARCH)) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
213 |
endif |
2 | 214 |
|
2158
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
919
diff
changeset
|
215 |
# If this is a --hash-style=gnu system, use --hash-style=both |
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
919
diff
changeset
|
216 |
# The gnu .hash section won't work on some Linux systems like SuSE 10. |
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
919
diff
changeset
|
217 |
_HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | $(GREP) -- '--hash-style=gnu') |
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
919
diff
changeset
|
218 |
ifneq ($(_HAS_HASH_STYLE_GNU),) |
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
919
diff
changeset
|
219 |
LDFLAGS_HASH_STYLE = -Wl,--hash-style=both |
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
919
diff
changeset
|
220 |
endif |
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
919
diff
changeset
|
221 |
LDFLAGS_COMMON += $(LDFLAGS_HASH_STYLE) |
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
919
diff
changeset
|
222 |
|
2 | 223 |
# |
224 |
# Selection of warning messages |
|
225 |
# |
|
226 |
GCC_INHIBIT = -Wno-unused -Wno-parentheses |
|
227 |
GCC_STYLE = |
|
228 |
GCC_WARNINGS = -W -Wall $(GCC_STYLE) $(GCC_INHIBIT) |
|
229 |
||
230 |
# |
|
231 |
# Treat compiler warnings as errors, if warnings not allowed |
|
232 |
# |
|
233 |
ifeq ($(COMPILER_WARNINGS_FATAL),true) |
|
234 |
GCC_WARNINGS += -Werror |
|
235 |
endif |
|
236 |
||
237 |
# |
|
238 |
# Misc compiler options |
|
239 |
# |
|
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
240 |
ifneq ($(ARCH),ppc) |
2 | 241 |
CFLAGS_COMMON = -fno-strict-aliasing |
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
242 |
endif |
2 | 243 |
PIC_CODE_LARGE = -fPIC |
244 |
PIC_CODE_SMALL = -fpic |
|
245 |
GLOBAL_KPIC = $(PIC_CODE_LARGE) |
|
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
246 |
CFLAGS_COMMON += $(GLOBAL_KPIC) $(GCC_WARNINGS) |
2 | 247 |
ifeq ($(ARCH), amd64) |
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
248 |
CFLAGS_COMMON += -pipe |
2 | 249 |
endif |
250 |
||
251 |
# Linux 64bit machines use Dwarf2, which can be HUGE, have fastdebug use -g1 |
|
252 |
DEBUG_FLAG = -g |
|
253 |
ifeq ($(FASTDEBUG), true) |
|
254 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
255 |
DEBUG_FLAG = -g1 |
|
256 |
endif |
|
257 |
endif |
|
258 |
||
2791
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
259 |
# DEBUG_BINARIES overrides everything, use full -g debug information |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
260 |
ifeq ($(DEBUG_BINARIES), true) |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
261 |
DEBUG_FLAG = -g |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
262 |
CFLAGS_REQUIRED += $(DEBUG_FLAG) |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
263 |
endif |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
264 |
|
12427 | 265 |
# If Full Debug Symbols is enabled, then we want the same debug and |
266 |
# optimization flags as used by FASTDEBUG. |
|
267 |
# |
|
268 |
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
|
269 |
ifeq ($(LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS),1) |
|
270 |
ifeq ($(VARIANT), OPT) |
|
271 |
CC_OPT = $(DEBUG_FLAG) $(CC_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL)) |
|
272 |
endif |
|
273 |
endif |
|
274 |
endif |
|
275 |
||
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
276 |
CFLAGS_OPT = $(CC_OPT) |
2 | 277 |
CFLAGS_DBG = $(DEBUG_FLAG) |
278 |
CFLAGS_COMMON += $(CFLAGS_REQUIRED) |
|
279 |
||
280 |
CXXFLAGS_COMMON = $(GLOBAL_KPIC) -DCC_NOEX $(GCC_WARNINGS) |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
281 |
CXXFLAGS_OPT = $(CC_OPT) |
2 | 282 |
CXXFLAGS_DBG = $(DEBUG_FLAG) |
283 |
CXXFLAGS_COMMON += $(CFLAGS_REQUIRED) |
|
284 |
||
285 |
# FASTDEBUG: Optimize the code in the -g versions, gives us a faster debug java |
|
286 |
ifeq ($(FASTDEBUG), true) |
|
2398
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2158
diff
changeset
|
287 |
CFLAGS_DBG += $(CC_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL)) |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2158
diff
changeset
|
288 |
CXXFLAGS_DBG += $(CC_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL)) |
2 | 289 |
endif |
290 |
||
5632 | 291 |
CPP_ARCH_FLAGS = -DARCH='"$(ARCH)"' |
292 |
||
293 |
# Alpha arch does not like "alpha" defined (potential general arch cleanup issue here) |
|
294 |
ifneq ($(ARCH),alpha) |
|
295 |
CPP_ARCH_FLAGS += -D$(ARCH) |
|
296 |
else |
|
297 |
CPP_ARCH_FLAGS += -D_$(ARCH)_ |
|
298 |
endif |
|
299 |
||
300 |
CPPFLAGS_COMMON = $(CPP_ARCH_FLAGS) -DLINUX $(VERSION_DEFINES) \ |
|
2 | 301 |
-D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT |
302 |
||
303 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
304 |
CPPFLAGS_COMMON += -D_LP64=1 |
|
305 |
endif |
|
306 |
||
3222
432b8f34c3b0
6858127: Missing -DNDEBUG on Linux and Windows native code compiles
ohair
parents:
2791
diff
changeset
|
307 |
CPPFLAGS_OPT = -DNDEBUG |
2 | 308 |
CPPFLAGS_DBG = -DDEBUG |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
309 |
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
|
310 |
CPPFLAGS_DBG += -DLOGGING |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
311 |
endif |
2 | 312 |
|
313 |
ifdef LIBRARY |
|
314 |
# Libraries need to locate other libraries at runtime, and you can tell |
|
315 |
# a library where to look by way of the dynamic runpaths (RPATH or RUNPATH) |
|
316 |
# buried inside the .so. The $ORIGIN says to look relative to where |
|
317 |
# the library itself is and it can be followed with relative paths from |
|
318 |
# that. By default we always look in $ORIGIN, optionally we add relative |
|
319 |
# paths if the Makefile sets LD_RUNPATH_EXTRAS to those relative paths. |
|
320 |
# On Linux we add a flag -z origin, not sure if this is necessary, but |
|
321 |
# doesn't seem to hurt. |
|
322 |
# The environment variable LD_LIBRARY_PATH will over-ride these runpaths. |
|
323 |
# Try: 'readelf -d lib*.so' to see these settings in a library. |
|
324 |
# |
|
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
325 |
Z_ORIGIN_FLAG/sparc = -Xlinker -z -Xlinker origin |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
326 |
Z_ORIGIN_FLAG/i586 = -Xlinker -z -Xlinker origin |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
327 |
Z_ORIGIN_FLAG/amd64 = -Xlinker -z -Xlinker origin |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
328 |
Z_ORIGIN_FLAG/ia64 = -Xlinker -z -Xlinker origin |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
329 |
Z_ORIGIN_FLAG/arm = |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
330 |
Z_ORIGIN_FLAG/ppc = |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
331 |
Z_ORIGIN_FLAG/zero = -Xlinker -z -Xlinker origin |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
332 |
|
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
333 |
LDFLAG_Z_ORIGIN = $(Z_ORIGIN_FLAG/$(ARCH_FAMILY)) |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
334 |
|
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
335 |
LDFLAGS_COMMON += $(LDFLAG_Z_ORIGIN) -Xlinker -rpath -Xlinker \$$ORIGIN |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
336 |
LDFLAGS_COMMON += $(LD_RUNPATH_EXTRAS:%=$(LDFLAG_Z_ORIGIN) -Xlinker -rpath -Xlinker \$$ORIGIN/%) |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
337 |
|
2 | 338 |
endif |
339 |
||
340 |
EXTRA_LIBS += -lc |
|
341 |
||
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
342 |
LDFLAGS_DEFS_OPTION = -Xlinker -z -Xlinker defs |
2 | 343 |
LDFLAGS_COMMON += $(LDFLAGS_DEFS_OPTION) |
344 |
||
345 |
# |
|
346 |
# -L paths for finding and -ljava |
|
347 |
# |
|
348 |
LDFLAGS_OPT = -Xlinker -O1 |
|
349 |
LDFLAGS_COMMON += -L$(LIBDIR)/$(LIBARCH) |
|
350 |
LDFLAGS_COMMON += -Wl,-soname=$(LIB_PREFIX)$(LIBRARY).$(LIBRARY_SUFFIX) |
|
351 |
||
352 |
# |
|
353 |
# -static-libgcc is a gcc-3 flag to statically link libgcc, gcc-2.9x always |
|
354 |
# statically link libgcc but will print a warning with the flag. We don't |
|
355 |
# want the warning, so check gcc version first. |
|
356 |
# |
|
9350
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
8796
diff
changeset
|
357 |
ifeq ($(CC_MAJORVER),3) |
799e0bb89242
7038711: Fix CC_VER checks for compiler options, fix use of -Wno-clobber
ohair
parents:
8796
diff
changeset
|
358 |
OTHER_LDFLAGS += -static-libgcc |
2 | 359 |
endif |
360 |
||
361 |
# Automatic precompiled header option to use (if COMPILE_APPROACH=batch) |
|
362 |
# (See Rules.gmk) The gcc 5 compiler might have an option for this? |
|
363 |
AUTOMATIC_PCH_OPTION = |
|
364 |
||
365 |
# |
|
366 |
# Post Processing of libraries/executables |
|
367 |
# |
|
368 |
ifeq ($(VARIANT), OPT) |
|
369 |
ifneq ($(NO_STRIP), true) |
|
2791
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
370 |
ifneq ($(DEBUG_BINARIES), true) |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
371 |
# Debug 'strip -g' leaves local function Elf symbols (better stack |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
372 |
# traces) |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
373 |
POST_STRIP_PROCESS = $(STRIP) -g |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
374 |
endif |
2 | 375 |
endif |
376 |
endif |
|
377 |
||
378 |
# |
|
379 |
# Use: ld $(LD_MAPFILE_FLAG) mapfile *.o |
|
380 |
# |
|
381 |
LD_MAPFILE_FLAG = -Xlinker --version-script -Xlinker |
|
382 |
||
383 |
# |
|
384 |
# Support for Quantify. |
|
385 |
# |
|
386 |
ifdef QUANTIFY |
|
387 |
QUANTIFY_CMD = quantify |
|
388 |
QUANTIFY_OPTIONS = -cache-dir=/tmp/quantify -always-use-cache-dir=yes |
|
389 |
LINK_PRE_CMD = $(QUANTIFY_CMD) $(QUANTIFY_OPTIONS) |
|
390 |
endif |
|
391 |
||
392 |
# |
|
393 |
# Path and option to link against the VM, if you have to. Note that |
|
394 |
# there are libraries that link against only -ljava, but they do get |
|
395 |
# -L to the -ljvm, this is because -ljava depends on -ljvm, whereas |
|
396 |
# the library itself should not. |
|
397 |
# |
|
398 |
VM_NAME = server |
|
399 |
JVMLIB = -L$(LIBDIR)/$(LIBARCH)/$(VM_NAME) -ljvm |
|
400 |
JAVALIB = -ljava $(JVMLIB) |
|
401 |
||
402 |
# |
|
403 |
# We want to privatize JVM symbols on Solaris. This is so the user can |
|
404 |
# write a function called FindClass and this should not override the |
|
405 |
# FindClass that is inside the JVM. At this point in time we are not |
|
406 |
# concerned with other JNI libraries because we hope that there will |
|
407 |
# not be as many clashes there. |
|
408 |
# |
|
409 |
PRIVATIZE_JVM_SYMBOLS = false |
|
410 |
||
411 |
USE_PTHREADS = true |
|
412 |
override ALT_CODESET_KEY = _NL_CTYPE_CODESET_NAME |
|
413 |
override AWT_RUNPATH = |
|
414 |
override HAVE_ALTZONE = false |
|
415 |
override HAVE_FILIOH = false |
|
416 |
override HAVE_GETHRTIME = false |
|
417 |
override HAVE_GETHRVTIME = false |
|
418 |
override HAVE_SIGIGNORE = true |
|
419 |
override LEX_LIBRARY = -lfl |
|
420 |
ifeq ($(STATIC_CXX),true) |
|
421 |
override LIBCXX = -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic |
|
422 |
else |
|
423 |
override LIBCXX = -lstdc++ |
|
424 |
endif |
|
425 |
override LIBPOSIX4 = |
|
426 |
override LIBSOCKET = |
|
5780 | 427 |
override LIBNSL = |
10700
31c24f40f614
7092679: (tz) Java getting wrong timezone/DST info on Solaris 11
okutsu
parents:
10603
diff
changeset
|
428 |
override LIBSCF = |
2 | 429 |
override LIBTHREAD = |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11369
diff
changeset
|
430 |
override LIBDL = -ldl |
2 | 431 |
override MOOT_PRIORITIES = true |
432 |
override NO_INTERRUPTIBLE_IO = true |
|
433 |
ifeq ($(ARCH), amd64) |
|
434 |
override OPENWIN_LIB = $(OPENWIN_HOME)/lib64 |
|
435 |
else |
|
436 |
override OPENWIN_LIB = $(OPENWIN_HOME)/lib |
|
437 |
endif |
|
438 |
override OTHER_M4FLAGS = -D__GLIBC__ -DGNU_ASSEMBLER |
|
439 |
override SUN_CMM_SUBDIR = |
|
440 |
override THREADS_FLAG = native |
|
441 |
override USE_GNU_M4 = true |
|
442 |
override USING_GNU_TAR = true |
|
443 |
override WRITE_LIBVERSION = false |
|
444 |
||
445 |
# USE_EXECNAME forces the launcher to look up argv[0] on $PATH, and put the |
|
446 |
# resulting resolved absolute name of the executable in the environment |
|
447 |
# variable EXECNAME. That executable name is then used that to locate the |
|
448 |
# installation area. |
|
449 |
override USE_EXECNAME = true |
|
450 |
||
451 |
# If your platform has DPS, it will have Type1 fonts too, in which case |
|
452 |
# it is best to enable DPS support until such time as 2D's rasteriser |
|
453 |
# can fully handle Type1 fonts in all cases. Default is "yes". |
|
454 |
# HAVE_DPS should only be "no" if the platform has no DPS headers or libs |
|
455 |
# DPS (Displayable PostScript) is available on Solaris machines |
|
456 |
HAVE_DPS = no |
|
457 |
||
458 |
# |
|
459 |
# Japanese manpages |
|
460 |
# |
|
461 |
JA_SOURCE_ENCODING = eucJP |
|
9367
7ed49dc79ebc
7036955: Japanese man pages in linux should be in utf-8 encoding
ogino
parents:
8796
diff
changeset
|
462 |
JA_TARGET_ENCODINGS = UTF-8 |
2 | 463 |
|
464 |
# Settings for the JDI - Serviceability Agent binding. |
|
465 |
HOTSPOT_SALIB_PATH = $(HOTSPOT_IMPORT_PATH)/jre/lib/$(LIBARCH) |
|
466 |
SALIB_NAME = $(LIB_PREFIX)saproc.$(LIBRARY_SUFFIX) |
|
10603
c315c8424ce2
7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
dcubed
parents:
9371
diff
changeset
|
467 |
SA_DEBUGINFO_NAME = $(LIB_PREFIX)saproc.debuginfo |
12293
6c4b13381b81
7136506: FDS: rework jdk repo Full Debug Symbols support
dcubed
parents:
12047
diff
changeset
|
468 |
SA_DIZ_NAME = $(LIB_PREFIX)saproc.diz |
2 | 469 |
|
470 |
# The JDI - Serviceability Agent binding is not currently supported |
|
471 |
# on Linux-ia64. |
|
472 |
ifeq ($(ARCH), ia64) |
|
473 |
INCLUDE_SA = false |
|
474 |
else |
|
475 |
INCLUDE_SA = true |
|
476 |
endif |
|
477 |
||
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
478 |
ifdef CROSS_COMPILE_ARCH |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
479 |
# X11 headers are not under /usr/include |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
480 |
OTHER_CFLAGS += -I$(OPENWIN_HOME)/include |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
481 |
OTHER_CXXFLAGS += -I$(OPENWIN_HOME)/include |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
482 |
OTHER_CPPFLAGS += -I$(OPENWIN_HOME)/include |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
7967
diff
changeset
|
483 |
endif |