author | duke |
Wed, 05 Jul 2017 22:53:16 +0200 | |
changeset 43854 | 76c52ad1e6c7 |
parent 43048 | f30802caac1e |
permissions | -rw-r--r-- |
36506 | 1 |
# |
41458 | 2 |
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
36506 | 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 |
SUPPORT_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(SUPPORT_OUTPUTDIR)) |
|
48 |
JDK_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(JDK_OUTPUTDIR)) |
|
37770 | 49 |
IMAGES_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(IMAGES_OUTPUTDIR)) |
36506 | 50 |
|
51 |
OPENJDK_BUILD_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@ |
|
52 |
OPENJDK_BUILD_CPU_LEGACY_LIB := @OPENJDK_BUILD_CPU_LEGACY_LIB@ |
|
53 |
OPENJDK_TARGET_CPU := @OPENJDK_BUILD_CPU@ |
|
54 |
OPENJDK_TARGET_CPU_ARCH := @OPENJDK_BUILD_CPU_ARCH@ |
|
55 |
OPENJDK_TARGET_CPU_BITS := @OPENJDK_BUILD_CPU_BITS@ |
|
56 |
OPENJDK_TARGET_CPU_ENDIAN := @OPENJDK_BUILD_CPU_ENDIAN@ |
|
57 |
OPENJDK_TARGET_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@ |
|
58 |
||
37402 | 59 |
HOTSPOT_TARGET_OS := @HOTSPOT_BUILD_OS@ |
60 |
HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_BUILD_OS_TYPE@ |
|
61 |
HOTSPOT_TARGET_CPU := @HOTSPOT_BUILD_CPU@ |
|
62 |
HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_BUILD_CPU_ARCH@ |
|
63 |
HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_BUILD_CPU_DEFINE@ |
|
64 |
||
36506 | 65 |
CFLAGS_JDKLIB := @OPENJDK_BUILD_CFLAGS_JDKLIB@ |
66 |
CXXFLAGS_JDKLIB := @OPENJDK_BUILD_CXXFLAGS_JDKLIB@ |
|
67 |
LDFLAGS_JDKLIB := @OPENJDK_BUILD_LDFLAGS_JDKLIB@ |
|
68 |
CFLAGS_JDKEXE := @OPENJDK_BUILD_CFLAGS_JDKEXE@ |
|
69 |
CXXFLAGS_JDKEXE := @OPENJDK_BUILD_CXXFLAGS_JDKEXE@ |
|
70 |
LDFLAGS_JDKEXE := @OPENJDK_BUILD_LDFLAGS_JDKEXE@ |
|
71 |
||
37402 | 72 |
JVM_CFLAGS := @OPENJDK_BUILD_JVM_CFLAGS@ |
73 |
JVM_LDFLAGS := @OPENJDK_BUILD_JVM_LDFLAGS@ |
|
74 |
JVM_ASFLAGS := @OPENJDK_BUILD_JVM_ASFLAGS@ |
|
75 |
JVM_LIBS := @OPENJDK_BUILD_JVM_LIBS@ |
|
76 |
||
36506 | 77 |
# The compiler for the build platform is likely not warning compatible with the official |
78 |
# compiler. |
|
79 |
WARNINGS_AS_ERRORS := false |
|
80 |
DISABLE_WARNING_PREFIX := @BUILD_CC_DISABLE_WARNING_PREFIX@ |
|
81 |
||
82 |
# Save speed and disk space by not enabling debug symbols for the buildjdk |
|
83 |
ENABLE_DEBUG_SYMBOLS := false |
|
84 |
||
37967
8dd54c3bf02a
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37402
diff
changeset
|
85 |
# Control wether Hotspot builds gtest tests |
8dd54c3bf02a
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37402
diff
changeset
|
86 |
BUILD_GTEST := false |
36506 | 87 |
|
42304 | 88 |
JVM_VARIANTS := server |
42513 | 89 |
JVM_VARIANT_MAIN := server |
36506 | 90 |
|
91 |
# Some users still set EXTRA_*FLAGS on the make command line. Must |
|
92 |
# make sure to override that when building buildjdk. |
|
93 |
override EXTRA_CFLAGS := |
|
94 |
override EXTRA_CXXFLAGS := |
|
95 |
override EXTRA_LDFLAGS := |