make/autoconf/buildjdk-spec.gmk.in
author chegar
Thu, 17 Oct 2019 20:54:25 +0100
branchdatagramsocketimpl-branch
changeset 58679 9c3209ff7550
parent 58678 9cf78a70fa4f
parent 58198 c46407f651a9
permissions -rw-r--r--
datagramsocketimpl-branch: merge with default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     1
#
41458
f285e333e8db 8167424: Various trivial fixes in build system
ihse
parents: 41170
diff changeset
     2
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     4
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    10
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    15
# accompanied this code).
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    16
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    20
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    23
# questions.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    24
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    25
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    26
# This spec file is used to compile a BUILD_JDK while cross compiling. The
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    27
# BUILD_JDK runs on the build/host platform and is of the same version as
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    28
# the main build.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    29
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    30
# First include the real base spec.gmk file
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    31
include @SPEC@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    32
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    33
CC := @BUILD_CC@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    34
CXX := @BUILD_CXX@
55292
f4b2d5b83ebf 8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling
erikj
parents: 53643
diff changeset
    35
# Ideally this should be probed by configure but that is tricky to implement,
f4b2d5b83ebf 8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling
erikj
parents: 53643
diff changeset
    36
# and this should work in most cases.
f4b2d5b83ebf 8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling
erikj
parents: 53643
diff changeset
    37
CPP := @BUILD_CC@ -E
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    38
LD := @BUILD_LD@
41170
30db66a57e7d 8160630: libjimage.so and others should link statically to libgcc
erikj
parents: 37969
diff changeset
    39
LDCXX := @BUILD_LDCXX@
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    40
AS := @BUILD_AS@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    41
NM := @BUILD_NM@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    42
AR := @BUILD_AR@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    43
OBJCOPY := @BUILD_OBJCOPY@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    44
STRIP := @BUILD_STRIP@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    45
SYSROOT_CFLAGS := @BUILD_SYSROOT_CFLAGS@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    46
SYSROOT_LDFLAGS := @BUILD_SYSROOT_LDFLAGS@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    47
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    48
# These directories should not be moved to BUILDJDK_OUTPUTDIR
47253
92fd0e04e0e1 8187544: Replace BUILD_OUTPUT and OUTPUT_ROOT with OUTPUTDIR
ihse
parents: 47216
diff changeset
    49
HOTSPOT_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_OUTPUTDIR))
55292
f4b2d5b83ebf 8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling
erikj
parents: 53643
diff changeset
    50
BUILDTOOLS_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(BUILDTOOLS_OUTPUTDIR))
47253
92fd0e04e0e1 8187544: Replace BUILD_OUTPUT and OUTPUT_ROOT with OUTPUTDIR
ihse
parents: 47216
diff changeset
    51
SUPPORT_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(SUPPORT_OUTPUTDIR))
92fd0e04e0e1 8187544: Replace BUILD_OUTPUT and OUTPUT_ROOT with OUTPUTDIR
ihse
parents: 47216
diff changeset
    52
JDK_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(JDK_OUTPUTDIR))
92fd0e04e0e1 8187544: Replace BUILD_OUTPUT and OUTPUT_ROOT with OUTPUTDIR
ihse
parents: 47216
diff changeset
    53
IMAGES_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(IMAGES_OUTPUTDIR))
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    54
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    55
OPENJDK_BUILD_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    56
OPENJDK_BUILD_CPU_LEGACY_LIB := @OPENJDK_BUILD_CPU_LEGACY_LIB@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    57
OPENJDK_TARGET_CPU := @OPENJDK_BUILD_CPU@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    58
OPENJDK_TARGET_CPU_ARCH := @OPENJDK_BUILD_CPU_ARCH@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    59
OPENJDK_TARGET_CPU_BITS := @OPENJDK_BUILD_CPU_BITS@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    60
OPENJDK_TARGET_CPU_ENDIAN := @OPENJDK_BUILD_CPU_ENDIAN@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    61
OPENJDK_TARGET_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
48355
4944950606ef 8191913: Bump classfile version number to 55
psandoz
parents: 47253
diff changeset
    62
OPENJDK_TARGET_OS_INCLUDE_SUBDIR := @OPENJDK_BUILD_OS_INCLUDE_SUBDIR@
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    63
37402
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    64
HOTSPOT_TARGET_OS := @HOTSPOT_BUILD_OS@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    65
HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_BUILD_OS_TYPE@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    66
HOTSPOT_TARGET_CPU := @HOTSPOT_BUILD_CPU@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    67
HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_BUILD_CPU_ARCH@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    68
HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_BUILD_CPU_DEFINE@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    69
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    70
CFLAGS_JDKLIB := @OPENJDK_BUILD_CFLAGS_JDKLIB@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    71
CXXFLAGS_JDKLIB := @OPENJDK_BUILD_CXXFLAGS_JDKLIB@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    72
LDFLAGS_JDKLIB := @OPENJDK_BUILD_LDFLAGS_JDKLIB@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    73
CFLAGS_JDKEXE := @OPENJDK_BUILD_CFLAGS_JDKEXE@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    74
CXXFLAGS_JDKEXE := @OPENJDK_BUILD_CXXFLAGS_JDKEXE@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    75
LDFLAGS_JDKEXE := @OPENJDK_BUILD_LDFLAGS_JDKEXE@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    76
37402
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    77
JVM_CFLAGS := @OPENJDK_BUILD_JVM_CFLAGS@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    78
JVM_LDFLAGS := @OPENJDK_BUILD_JVM_LDFLAGS@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    79
JVM_ASFLAGS := @OPENJDK_BUILD_JVM_ASFLAGS@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    80
JVM_LIBS := @OPENJDK_BUILD_JVM_LIBS@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    81
53643
1126811a5124 8160926: FLAGS_COMPILER_CHECK_ARGUMENTS doesn't handle cross-compilation
erikj
parents: 48355
diff changeset
    82
FDLIBM_CFLAGS := @OPENJDK_BUILD_FDLIBM_CFLAGS@
1126811a5124 8160926: FLAGS_COMPILER_CHECK_ARGUMENTS doesn't handle cross-compilation
erikj
parents: 48355
diff changeset
    83
55292
f4b2d5b83ebf 8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling
erikj
parents: 53643
diff changeset
    84
INTERIM_LANGTOOLS_ARGS := $(subst $(OUTPUTDIR),$(BUILDJDK_OUTPUTDIR),$(INTERIM_LANGTOOLS_ARGS))
f4b2d5b83ebf 8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling
erikj
parents: 53643
diff changeset
    85
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    86
# The compiler for the build platform is likely not warning compatible with the official
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    87
# compiler.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    88
WARNINGS_AS_ERRORS := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    89
DISABLE_WARNING_PREFIX := @BUILD_CC_DISABLE_WARNING_PREFIX@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    90
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    91
# Save speed and disk space by not enabling debug symbols for the buildjdk
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    92
ENABLE_DEBUG_SYMBOLS := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    93
58198
c46407f651a9 8231027: Correct typos
serb
parents: 55292
diff changeset
    94
# Control whether Hotspot builds gtest tests
37967
8dd54c3bf02a 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37402
diff changeset
    95
BUILD_GTEST := false
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    96
42304
ca14b2e72cab 8170784: JDK-8038957 broke cross compilation
erikj
parents: 42299
diff changeset
    97
JVM_VARIANTS := server
42513
jwilhelm
parents: 42304 42510
diff changeset
    98
JVM_VARIANT_MAIN := server
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    99
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   100
# Some users still set EXTRA_*FLAGS on the make command line. Must
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   101
# make sure to override that when building buildjdk.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   102
override EXTRA_CFLAGS :=
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   103
override EXTRA_CXXFLAGS :=
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   104
override EXTRA_LDFLAGS :=