author | bpatel |
Mon, 10 Oct 2016 15:17:02 -0700 | |
changeset 41453 | 5429549751ad |
parent 41170 | 30db66a57e7d |
child 41458 | f285e333e8db |
permissions | -rw-r--r-- |
36506 | 1 |
# |
2 |
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
|
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 |
|
7 |
# published by the Free Software Foundation. Oracle designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
|
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 |
# |
|
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. |
|
24 |
# |
|
25 |
||
26 |
# This spec file is used to compile a BUILD_JDK while cross compiling. The |
|
27 |
# BUILD_JDK runs on the build/host platform and is of the same version as |
|
28 |
# the main build. |
|
29 |
||
30 |
# First include the real base spec.gmk file |
|
31 |
include @SPEC@ |
|
32 |
||
33 |
CC := @BUILD_CC@ |
|
34 |
CXX := @BUILD_CXX@ |
|
35 |
LD := @BUILD_LD@ |
|
41170
30db66a57e7d
8160630: libjimage.so and others should link statically to libgcc
erikj
parents:
37969
diff
changeset
|
36 |
LDCXX := @BUILD_LDCXX@ |
36506 | 37 |
AS := @BUILD_AS@ |
38 |
NM := @BUILD_NM@ |
|
39 |
AR := @BUILD_AR@ |
|
40 |
OBJCOPY := @BUILD_OBJCOPY@ |
|
41 |
STRIP := @BUILD_STRIP@ |
|
42 |
SYSROOT_CFLAGS := @BUILD_SYSROOT_CFLAGS@ |
|
43 |
SYSROOT_LDFLAGS := @BUILD_SYSROOT_LDFLAGS@ |
|
44 |
||
45 |
# These directories should not be moved to BUILDJDK_OUTPUTDIR |
|
46 |
HOTSPOT_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_OUTPUTDIR)) |
|
47 |
HOTSPOT_DIST := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_DIST)) |
|
48 |
SUPPORT_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(SUPPORT_OUTPUTDIR)) |
|
49 |
JDK_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(JDK_OUTPUTDIR)) |
|
37770 | 50 |
IMAGES_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(IMAGES_OUTPUTDIR)) |
36506 | 51 |
|
52 |
OPENJDK_BUILD_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@ |
|
53 |
OPENJDK_BUILD_CPU_LEGACY_LIB := @OPENJDK_BUILD_CPU_LEGACY_LIB@ |
|
54 |
OPENJDK_BUILD_CPU_LIBDIR := @OPENJDK_BUILD_CPU_LIBDIR@ |
|
55 |
OPENJDK_TARGET_CPU_LIBDIR := @OPENJDK_BUILD_CPU_LIBDIR@ |
|
56 |
OPENJDK_TARGET_CPU := @OPENJDK_BUILD_CPU@ |
|
57 |
OPENJDK_TARGET_CPU_ARCH := @OPENJDK_BUILD_CPU_ARCH@ |
|
58 |
OPENJDK_TARGET_CPU_BITS := @OPENJDK_BUILD_CPU_BITS@ |
|
59 |
OPENJDK_TARGET_CPU_ENDIAN := @OPENJDK_BUILD_CPU_ENDIAN@ |
|
60 |
OPENJDK_TARGET_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@ |
|
61 |
||
37402 | 62 |
HOTSPOT_TARGET_OS := @HOTSPOT_BUILD_OS@ |
63 |
HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_BUILD_OS_TYPE@ |
|
64 |
HOTSPOT_TARGET_CPU := @HOTSPOT_BUILD_CPU@ |
|
65 |
HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_BUILD_CPU_ARCH@ |
|
66 |
HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_BUILD_CPU_DEFINE@ |
|
67 |
||
36506 | 68 |
CFLAGS_JDKLIB := @OPENJDK_BUILD_CFLAGS_JDKLIB@ |
69 |
CXXFLAGS_JDKLIB := @OPENJDK_BUILD_CXXFLAGS_JDKLIB@ |
|
70 |
LDFLAGS_JDKLIB := @OPENJDK_BUILD_LDFLAGS_JDKLIB@ |
|
71 |
CFLAGS_JDKEXE := @OPENJDK_BUILD_CFLAGS_JDKEXE@ |
|
72 |
CXXFLAGS_JDKEXE := @OPENJDK_BUILD_CXXFLAGS_JDKEXE@ |
|
73 |
LDFLAGS_JDKEXE := @OPENJDK_BUILD_LDFLAGS_JDKEXE@ |
|
74 |
OPENJDK_TARGET_CPU_JLI_CFLAGS := @OPENJDK_BUILD_CPU_JLI_CFLAGS@ |
|
75 |
||
37402 | 76 |
JVM_CFLAGS := @OPENJDK_BUILD_JVM_CFLAGS@ |
77 |
JVM_LDFLAGS := @OPENJDK_BUILD_JVM_LDFLAGS@ |
|
78 |
JVM_ASFLAGS := @OPENJDK_BUILD_JVM_ASFLAGS@ |
|
79 |
JVM_LIBS := @OPENJDK_BUILD_JVM_LIBS@ |
|
80 |
||
36506 | 81 |
# The compiler for the build platform is likely not warning compatible with the official |
82 |
# compiler. |
|
83 |
WARNINGS_AS_ERRORS := false |
|
84 |
DISABLE_WARNING_PREFIX := @BUILD_CC_DISABLE_WARNING_PREFIX@ |
|
85 |
||
86 |
# Save speed and disk space by not enabling debug symbols for the buildjdk |
|
87 |
ENABLE_DEBUG_SYMBOLS := false |
|
88 |
||
89 |
#################################################### |
|
90 |
# |
|
91 |
# Legacy Hotspot support |
|
92 |
||
93 |
# Legacy setting: OPT or DBG |
|
94 |
VARIANT := OPT |
|
95 |
# Legacy setting: true or false |
|
96 |
FASTDEBUG := false |
|
97 |
# Legacy setting: debugging the class files? |
|
98 |
DEBUG_CLASSFILES := false |
|
99 |
||
100 |
# Some users still set EXTRA_*FLAGS on the make command line. Must |
|
101 |
# make sure to override that when building buildjdk. |
|
102 |
override EXTRA_CFLAGS := |
|
103 |
override EXTRA_CXXFLAGS := |
|
104 |
override EXTRA_LDFLAGS := |
|
105 |
||
106 |
# The HOSTCC/HOSTCXX is Hotspot terminology for the BUILD_CC/BUILD_CXX, i.e. the |
|
107 |
# compiler that produces code that can be run on the build platform. |
|
108 |
HOSTCC := $(BUILD_CC) |
|
109 |
HOSTCXX := $(BUILD_CXX) |
|
110 |
||
111 |
# Old name for OPENJDK_TARGET_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc) |
|
112 |
PLATFORM := $(OPENJDK_BUILD_OS) |
|
113 |
# 32 or 64 bit |
|
114 |
ARCH_DATA_MODEL := $(OPENJDK_BUILD_CPU_BITS) |
|
115 |
||
116 |
ALT_BOOTDIR := $(BOOT_JDK) |
|
117 |
# Yet another name for arch used for an extra subdir below the jvm lib. |
|
118 |
# Uses i386 and amd64, instead of x86 and x86_64. |
|
119 |
LIBARCH := @OPENJDK_BUILD_CPU_LEGACY_LIB@ |
|
120 |
# Set the cpu architecture. Some users still set ARCH on the make command line. Must |
|
121 |
# make sure to override that when building buildjdk. |
|
122 |
override ARCH := $(OPENJDK_BUILD_CPU_ARCH) |
|
123 |
# Legacy setting for building for a 64 bit machine. |
|
124 |
# If yes then this expands to _LP64 := 1 |
|
125 |
ifeq ($(OPENJDK_BUILD_CPU_BITS), 64) |
|
126 |
_LP64 := 1 |
|
127 |
endif |
|
128 |
||
129 |
ALT_OUTPUTDIR := $(HOTSPOT_OUTPUTDIR) |
|
130 |
ALT_EXPORT_PATH := $(HOTSPOT_DIST) |
|
131 |
||
132 |
JVM_INTERPRETER := @JVM_INTERPRETER@ |
|
133 |
ifeq ($(JVM_INTERPRETER), cpp) |
|
134 |
CC_INTERP=true |
|
135 |
endif |
|
136 |
||
137 |
HOTSPOT_MAKE_ARGS := product docs export_product |
|
37967
8dd54c3bf02a
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37402
diff
changeset
|
138 |
|
8dd54c3bf02a
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37402
diff
changeset
|
139 |
# Control wether Hotspot builds gtest tests |
8dd54c3bf02a
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37402
diff
changeset
|
140 |
BUILD_GTEST := false |
36506 | 141 |
|
142 |
USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@ |
|
143 |
||
144 |
# Hotspot expects the variable FULL_DEBUG_SYMBOLS=1/0 to control debug symbols |
|
145 |
# creation. |
|
146 |
FULL_DEBUG_SYMBOLS := 0 |
|
147 |
ZIP_DEBUGINFO_FILES := 0 |
|
148 |
# Disable stripping |
|
149 |
STRIP_POLICY := none |
|
150 |
||
151 |
JVM_VARIANTS := server |
|
152 |
JVM_VARIANT_SERVER := true |
|
153 |
JVM_VARIANT_CLIENT := false |
|
154 |
JVM_VARIANT_MINIMAL1 := false |
|
155 |
JVM_VARIANT_KERNEL := false |
|
156 |
JVM_VARIANT_ZERO := false |
|
157 |
JVM_VARIANT_ZEROSHARK := false |
|
158 |
JVM_VARIANT_CORE := false |
|
159 |
||
160 |
# Sneak this in via the spec.gmk file, since we don't want to mess around too much with the Hotspot make files. |
|
161 |
# This is needed to get the LOG setting to work properly. |
|
162 |
include $(SRC_ROOT)/make/common/MakeBase.gmk |