author | andrew |
Thu, 03 Jun 2010 18:49:35 +0100 | |
changeset 5632 | 5179a4221430 |
parent 5506 | 202f599c92aa |
child 5801 | 8008ed6e4a37 |
permissions | -rw-r--r-- |
2 | 1 |
# |
5506 | 2 |
# Copyright (c) 1999, 2009, 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 |
||
56 |
# Platform specific closed sources |
|
57 |
ifndef OPENJDK |
|
58 |
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
|
59 |
CLOSED_PLATFORM_SRC = $(BUILDDIR)/../src/closed/solaris |
2 | 60 |
endif |
61 |
endif |
|
62 |
||
63 |
# platform specific include files |
|
64 |
PLATFORM_INCLUDE_NAME = $(PLATFORM) |
|
65 |
PLATFORM_INCLUDE = $(INCLUDEDIR)/$(PLATFORM_INCLUDE_NAME) |
|
66 |
||
67 |
# suffix used for make dependencies files. |
|
68 |
DEPEND_SUFFIX = d |
|
69 |
# The suffix applied to the library name for FDLIBM |
|
70 |
FDDLIBM_SUFFIX = a |
|
71 |
# The suffix applied to scripts (.bat for windows, nothing for unix) |
|
72 |
SCRIPT_SUFFIX = |
|
73 |
# CC compiler object code output directive flag value |
|
74 |
CC_OBJECT_OUTPUT_FLAG = -o #trailing blank required! |
|
75 |
CC_PROGRAM_OUTPUT_FLAG = -o #trailing blank required! |
|
76 |
||
77 |
# |
|
78 |
# Default HPI libraries. Build will build only native, unless |
|
79 |
# overriden at the make command line. This makes it convenient for |
|
80 |
# people doing, say, a pthreads port -- they can create a posix |
|
81 |
# directory here, and say "gnumake HPIS=posix" at the top |
|
82 |
# level. |
|
83 |
# |
|
84 |
HPIS = native |
|
85 |
||
86 |
# |
|
87 |
# Default optimization |
|
88 |
# |
|
89 |
||
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
90 |
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
|
91 |
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
|
92 |
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
|
93 |
else |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
94 |
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
|
95 |
endif |
2 | 96 |
endif |
2398
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2158
diff
changeset
|
97 |
ifndef FASTDEBUG_OPTIMIZATION_LEVEL |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2158
diff
changeset
|
98 |
FASTDEBUG_OPTIMIZATION_LEVEL = LOWER |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2158
diff
changeset
|
99 |
endif |
2 | 100 |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
101 |
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
|
102 |
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
|
103 |
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
|
104 |
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
|
105 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
106 |
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
|
107 |
|
2 | 108 |
# For all platforms, do not omit the frame pointer register usage. |
109 |
# We need this frame pointer to make it easy to walk the stacks. |
|
110 |
# This should be the default on X86, but ia64 and amd64 may not have this |
|
111 |
# as the default. |
|
112 |
CFLAGS_REQUIRED_amd64 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN |
|
113 |
CFLAGS_REQUIRED_i586 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN |
|
114 |
CFLAGS_REQUIRED_ia64 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN |
|
115 |
CFLAGS_REQUIRED_sparcv9 += -m64 -mcpu=v9 |
|
116 |
LDFLAGS_COMMON_sparcv9 += -m64 -mcpu=v9 |
|
117 |
CFLAGS_REQUIRED_sparc += -m32 -mcpu=v9 |
|
118 |
LDFLAGS_COMMON_sparc += -m32 -mcpu=v9 |
|
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
119 |
ifeq ($(ZERO_BUILD), true) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
120 |
CFLAGS_REQUIRED = $(ZERO_ARCHFLAG) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
121 |
ifeq ($(ZERO_ENDIANNESS), little) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
122 |
CFLAGS_REQUIRED += -D_LITTLE_ENDIAN |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
123 |
endif |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
124 |
LDFLAGS_COMMON += $(ZERO_ARCHFLAG) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
125 |
else |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
126 |
CFLAGS_REQUIRED = $(CFLAGS_REQUIRED_$(ARCH)) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
127 |
LDFLAGS_COMMON += $(LDFLAGS_COMMON_$(ARCH)) |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
128 |
endif |
2 | 129 |
|
2158
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
919
diff
changeset
|
130 |
# 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
|
131 |
# 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
|
132 |
_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
|
133 |
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
|
134 |
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
|
135 |
endif |
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
919
diff
changeset
|
136 |
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
|
137 |
|
2 | 138 |
# |
139 |
# Selection of warning messages |
|
140 |
# |
|
141 |
GCC_INHIBIT = -Wno-unused -Wno-parentheses |
|
142 |
GCC_STYLE = |
|
143 |
GCC_WARNINGS = -W -Wall $(GCC_STYLE) $(GCC_INHIBIT) |
|
144 |
||
145 |
# |
|
146 |
# Treat compiler warnings as errors, if warnings not allowed |
|
147 |
# |
|
148 |
ifeq ($(COMPILER_WARNINGS_FATAL),true) |
|
149 |
GCC_WARNINGS += -Werror |
|
150 |
endif |
|
151 |
||
152 |
# |
|
153 |
# Misc compiler options |
|
154 |
# |
|
155 |
ifeq ($(ARCH),ppc) |
|
156 |
CFLAGS_COMMON = -fsigned-char |
|
157 |
else # ARCH |
|
158 |
CFLAGS_COMMON = -fno-strict-aliasing |
|
159 |
endif # ARCH |
|
160 |
PIC_CODE_LARGE = -fPIC |
|
161 |
PIC_CODE_SMALL = -fpic |
|
162 |
GLOBAL_KPIC = $(PIC_CODE_LARGE) |
|
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
163 |
CFLAGS_COMMON += $(GLOBAL_KPIC) $(GCC_WARNINGS) |
2 | 164 |
ifeq ($(ARCH), amd64) |
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
715
diff
changeset
|
165 |
CFLAGS_COMMON += -pipe |
2 | 166 |
endif |
167 |
||
168 |
# Linux 64bit machines use Dwarf2, which can be HUGE, have fastdebug use -g1 |
|
169 |
DEBUG_FLAG = -g |
|
170 |
ifeq ($(FASTDEBUG), true) |
|
171 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
172 |
DEBUG_FLAG = -g1 |
|
173 |
endif |
|
174 |
endif |
|
175 |
||
2791
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
176 |
# DEBUG_BINARIES overrides everything, use full -g debug information |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
177 |
ifeq ($(DEBUG_BINARIES), true) |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
178 |
DEBUG_FLAG = -g |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
179 |
CFLAGS_REQUIRED += $(DEBUG_FLAG) |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
180 |
endif |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
181 |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
182 |
CFLAGS_OPT = $(CC_OPT) |
2 | 183 |
CFLAGS_DBG = $(DEBUG_FLAG) |
184 |
CFLAGS_COMMON += $(CFLAGS_REQUIRED) |
|
185 |
||
186 |
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
|
187 |
CXXFLAGS_OPT = $(CC_OPT) |
2 | 188 |
CXXFLAGS_DBG = $(DEBUG_FLAG) |
189 |
CXXFLAGS_COMMON += $(CFLAGS_REQUIRED) |
|
190 |
||
191 |
# FASTDEBUG: Optimize the code in the -g versions, gives us a faster debug java |
|
192 |
ifeq ($(FASTDEBUG), true) |
|
2398
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2158
diff
changeset
|
193 |
CFLAGS_DBG += $(CC_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL)) |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2158
diff
changeset
|
194 |
CXXFLAGS_DBG += $(CC_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL)) |
2 | 195 |
endif |
196 |
||
5632 | 197 |
CPP_ARCH_FLAGS = -DARCH='"$(ARCH)"' |
198 |
||
199 |
# Alpha arch does not like "alpha" defined (potential general arch cleanup issue here) |
|
200 |
ifneq ($(ARCH),alpha) |
|
201 |
CPP_ARCH_FLAGS += -D$(ARCH) |
|
202 |
else |
|
203 |
CPP_ARCH_FLAGS += -D_$(ARCH)_ |
|
204 |
endif |
|
205 |
||
206 |
CPPFLAGS_COMMON = $(CPP_ARCH_FLAGS) -DLINUX $(VERSION_DEFINES) \ |
|
2 | 207 |
-D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT |
208 |
||
209 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
210 |
CPPFLAGS_COMMON += -D_LP64=1 |
|
211 |
endif |
|
212 |
||
3222
432b8f34c3b0
6858127: Missing -DNDEBUG on Linux and Windows native code compiles
ohair
parents:
2791
diff
changeset
|
213 |
CPPFLAGS_OPT = -DNDEBUG |
2 | 214 |
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
|
215 |
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
|
216 |
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
|
217 |
endif |
2 | 218 |
|
219 |
ifdef LIBRARY |
|
220 |
# Libraries need to locate other libraries at runtime, and you can tell |
|
221 |
# a library where to look by way of the dynamic runpaths (RPATH or RUNPATH) |
|
222 |
# buried inside the .so. The $ORIGIN says to look relative to where |
|
223 |
# the library itself is and it can be followed with relative paths from |
|
224 |
# that. By default we always look in $ORIGIN, optionally we add relative |
|
225 |
# paths if the Makefile sets LD_RUNPATH_EXTRAS to those relative paths. |
|
226 |
# On Linux we add a flag -z origin, not sure if this is necessary, but |
|
227 |
# doesn't seem to hurt. |
|
228 |
# The environment variable LD_LIBRARY_PATH will over-ride these runpaths. |
|
229 |
# Try: 'readelf -d lib*.so' to see these settings in a library. |
|
230 |
# |
|
231 |
LDFLAGS_COMMON += -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$ORIGIN |
|
232 |
LDFLAGS_COMMON += $(LD_RUNPATH_EXTRAS:%=-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$ORIGIN/%) |
|
233 |
endif |
|
234 |
||
235 |
EXTRA_LIBS += -lc |
|
236 |
||
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
237 |
LDFLAGS_DEFS_OPTION = -Xlinker -z -Xlinker defs |
2 | 238 |
LDFLAGS_COMMON += $(LDFLAGS_DEFS_OPTION) |
239 |
||
240 |
# |
|
241 |
# -L paths for finding and -ljava |
|
242 |
# |
|
243 |
LDFLAGS_OPT = -Xlinker -O1 |
|
244 |
LDFLAGS_COMMON += -L$(LIBDIR)/$(LIBARCH) |
|
245 |
LDFLAGS_COMMON += -Wl,-soname=$(LIB_PREFIX)$(LIBRARY).$(LIBRARY_SUFFIX) |
|
246 |
||
247 |
# |
|
248 |
# -static-libgcc is a gcc-3 flag to statically link libgcc, gcc-2.9x always |
|
249 |
# statically link libgcc but will print a warning with the flag. We don't |
|
250 |
# want the warning, so check gcc version first. |
|
251 |
# |
|
252 |
CC_VER_MAJOR := $(shell $(CC) -dumpversion | $(SED) 's/egcs-//' | $(CUT) -d'.' -f1) |
|
253 |
ifeq ("$(CC_VER_MAJOR)", "3") |
|
254 |
OTHER_LDFLAGS += -static-libgcc |
|
255 |
endif |
|
256 |
||
257 |
# Automatic precompiled header option to use (if COMPILE_APPROACH=batch) |
|
258 |
# (See Rules.gmk) The gcc 5 compiler might have an option for this? |
|
259 |
AUTOMATIC_PCH_OPTION = |
|
260 |
||
261 |
# |
|
262 |
# Post Processing of libraries/executables |
|
263 |
# |
|
264 |
ifeq ($(VARIANT), OPT) |
|
265 |
ifneq ($(NO_STRIP), true) |
|
2791
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
266 |
ifneq ($(DEBUG_BINARIES), true) |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
267 |
# Debug 'strip -g' leaves local function Elf symbols (better stack |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
268 |
# traces) |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
269 |
POST_STRIP_PROCESS = $(STRIP) -g |
c84bf0caab7f
6829575: 100028: Debug information is incomplete or missing
aph
parents:
2398
diff
changeset
|
270 |
endif |
2 | 271 |
endif |
272 |
endif |
|
273 |
||
274 |
# |
|
275 |
# Use: ld $(LD_MAPFILE_FLAG) mapfile *.o |
|
276 |
# |
|
277 |
LD_MAPFILE_FLAG = -Xlinker --version-script -Xlinker |
|
278 |
||
279 |
# |
|
280 |
# Support for Quantify. |
|
281 |
# |
|
282 |
ifdef QUANTIFY |
|
283 |
QUANTIFY_CMD = quantify |
|
284 |
QUANTIFY_OPTIONS = -cache-dir=/tmp/quantify -always-use-cache-dir=yes |
|
285 |
LINK_PRE_CMD = $(QUANTIFY_CMD) $(QUANTIFY_OPTIONS) |
|
286 |
endif |
|
287 |
||
288 |
# |
|
289 |
# Path and option to link against the VM, if you have to. Note that |
|
290 |
# there are libraries that link against only -ljava, but they do get |
|
291 |
# -L to the -ljvm, this is because -ljava depends on -ljvm, whereas |
|
292 |
# the library itself should not. |
|
293 |
# |
|
294 |
VM_NAME = server |
|
295 |
JVMLIB = -L$(LIBDIR)/$(LIBARCH)/$(VM_NAME) -ljvm |
|
296 |
JAVALIB = -ljava $(JVMLIB) |
|
297 |
||
298 |
# |
|
299 |
# We want to privatize JVM symbols on Solaris. This is so the user can |
|
300 |
# write a function called FindClass and this should not override the |
|
301 |
# FindClass that is inside the JVM. At this point in time we are not |
|
302 |
# concerned with other JNI libraries because we hope that there will |
|
303 |
# not be as many clashes there. |
|
304 |
# |
|
305 |
PRIVATIZE_JVM_SYMBOLS = false |
|
306 |
||
307 |
USE_PTHREADS = true |
|
308 |
override ALT_CODESET_KEY = _NL_CTYPE_CODESET_NAME |
|
309 |
override AWT_RUNPATH = |
|
310 |
override HAVE_ALTZONE = false |
|
311 |
override HAVE_FILIOH = false |
|
312 |
override HAVE_GETHRTIME = false |
|
313 |
override HAVE_GETHRVTIME = false |
|
314 |
override HAVE_SIGIGNORE = true |
|
315 |
override LEX_LIBRARY = -lfl |
|
316 |
ifeq ($(STATIC_CXX),true) |
|
317 |
override LIBCXX = -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic |
|
318 |
else |
|
319 |
override LIBCXX = -lstdc++ |
|
320 |
endif |
|
321 |
override LIBPOSIX4 = |
|
322 |
override LIBSOCKET = |
|
323 |
override LIBTHREAD = |
|
324 |
override MOOT_PRIORITIES = true |
|
325 |
override NO_INTERRUPTIBLE_IO = true |
|
326 |
override OPENWIN_HOME = /usr/X11R6 |
|
327 |
ifeq ($(ARCH), amd64) |
|
328 |
override OPENWIN_LIB = $(OPENWIN_HOME)/lib64 |
|
329 |
else |
|
330 |
override OPENWIN_LIB = $(OPENWIN_HOME)/lib |
|
331 |
endif |
|
332 |
override OTHER_M4FLAGS = -D__GLIBC__ -DGNU_ASSEMBLER |
|
333 |
override SUN_CMM_SUBDIR = |
|
334 |
override THREADS_FLAG = native |
|
335 |
override USE_GNU_M4 = true |
|
336 |
override USING_GNU_TAR = true |
|
337 |
override WRITE_LIBVERSION = false |
|
338 |
||
339 |
# USE_EXECNAME forces the launcher to look up argv[0] on $PATH, and put the |
|
340 |
# resulting resolved absolute name of the executable in the environment |
|
341 |
# variable EXECNAME. That executable name is then used that to locate the |
|
342 |
# installation area. |
|
343 |
override USE_EXECNAME = true |
|
344 |
||
345 |
# If your platform has DPS, it will have Type1 fonts too, in which case |
|
346 |
# it is best to enable DPS support until such time as 2D's rasteriser |
|
347 |
# can fully handle Type1 fonts in all cases. Default is "yes". |
|
348 |
# HAVE_DPS should only be "no" if the platform has no DPS headers or libs |
|
349 |
# DPS (Displayable PostScript) is available on Solaris machines |
|
350 |
HAVE_DPS = no |
|
351 |
||
352 |
# |
|
353 |
# Japanese manpages |
|
354 |
# |
|
355 |
JA_SOURCE_ENCODING = eucJP |
|
356 |
JA_TARGET_ENCODINGS = eucJP |
|
357 |
||
358 |
# Settings for the JDI - Serviceability Agent binding. |
|
359 |
HOTSPOT_SALIB_PATH = $(HOTSPOT_IMPORT_PATH)/jre/lib/$(LIBARCH) |
|
360 |
SALIB_NAME = $(LIB_PREFIX)saproc.$(LIBRARY_SUFFIX) |
|
361 |
||
362 |
# The JDI - Serviceability Agent binding is not currently supported |
|
363 |
# on Linux-ia64. |
|
364 |
ifeq ($(ARCH), ia64) |
|
365 |
INCLUDE_SA = false |
|
366 |
else |
|
367 |
INCLUDE_SA = true |
|
368 |
endif |
|
369 |