common/autoconf/hotspot-spec.gmk.in
author psandoz
Sun, 13 Dec 2015 15:10:13 +0100
changeset 34684 b721350c05c0
parent 34103 d03d49538b76
child 35032 c2f315819691
permissions -rw-r--r--
8145007: Pattern splitAsStream is not late binding as required by the specification Reviewed-by: chegar, psandoz Contributed-by: Tagir Valeev <amaembo@gmail.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     1
#
20640
66c24722698e 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16581
diff changeset
     2
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     4
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    10
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    15
# accompanied this code).
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    16
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    20
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    23
# questions.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    24
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    25
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    26
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    27
# Chaining of spec files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    28
HOTSPOT_SPEC:=$(dir $(SPEC))hotspot-spec.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    29
override SPEC=$(HOTSPOT_SPEC)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    30
# Now include the base spec.gmk file
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    31
include $(BASE_SPEC)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    32
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    33
# Additional legacy variables defined for Hotspot
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    34
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    35
@SET_OPENJDK@
33443
ea274e904321 8141543: Propagate --disable-warnings-as-errors to hotspot
ihse
parents: 32810
diff changeset
    36
@HOTSPOT_SET_WARNINGS_AS_ERRORS@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    37
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    38
# Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    39
@BUILD_HEADLESS@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    40
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    41
# Legacy setting: OPT or DBG
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    42
VARIANT:=@VARIANT@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    43
# Legacy setting: true or false
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    44
FASTDEBUG:=@FASTDEBUG@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    45
# Legacy setting: debugging the class files?
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    46
DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    47
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    48
ALT_CUPS_HEADERS_PATH:=$(patsubst -I%,%,$(filter -I%,@CUPS_CFLAGS@))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    49
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    50
# The HOSTCC/HOSTCXX is Hotspot terminology for the BUILD_CC/BUILD_CXX, i.e. the
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    51
# compiler that produces code that can be run on the build platform.
34103
d03d49538b76 8142983: Enable builds with icecc/icecream
erikj
parents: 33443
diff changeset
    52
HOSTCC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@ $(BUILD_SYSROOT_CFLAGS)
d03d49538b76 8142983: Enable builds with icecc/icecream
erikj
parents: 33443
diff changeset
    53
HOSTCXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@ $(BUILD_SYSROOT_CFLAGS)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    54
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    55
####################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    56
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    57
# Legacy Hotspot support
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    58
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    59
# If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    60
@DEFINE_CROSS_COMPILE_ARCH@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    61
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    62
# Old name for OPENJDK_TARGET_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    63
PLATFORM=$(OPENJDK_TARGET_OS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    64
# 32 or 64 bit
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    65
ARCH_DATA_MODEL=$(OPENJDK_TARGET_CPU_BITS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    66
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    67
ALT_BOOTDIR=$(BOOT_JDK)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    68
# Can be /sparcv9 or /amd64 on Solaris
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    69
ISA_DIR=$(OPENJDK_TARGET_CPU_ISADIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    70
# Yet another name for arch used for an extra subdir below the jvm lib.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    71
# Uses i386 and amd64, instead of x86 and x86_64.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    72
LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
25318
10040c1338b4 8046471: Use OPENJDK_TARGET_CPU_ARCH instead of legacy value for hotspot ARCH
mikael
parents: 22721
diff changeset
    73
# Set the cpu architecture
10040c1338b4 8046471: Use OPENJDK_TARGET_CPU_ARCH instead of legacy value for hotspot ARCH
mikael
parents: 22721
diff changeset
    74
ARCH=$(OPENJDK_TARGET_CPU_ARCH)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    75
# Legacy setting for building for a 64 bit machine.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    76
# If yes then this expands to _LP64:=1
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    77
@LP64@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    78
16581
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    79
# Legacy settings for zero
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    80
ZERO_ENDIANNESS=$(OPENJDK_TARGET_CPU_ENDIAN)
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    81
ZERO_LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    82
ZERO_ARCHDEF=@ZERO_ARCHDEF@
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    83
ZERO_ARCHFLAG=@ZERO_ARCHFLAG@
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    84
LIBFFI_CFLAGS=@LIBFFI_CFLAGS@
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    85
LIBFFI_LIBS=@LIBFFI_LIBS@
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    86
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    87
# Legacy settings for zeroshark
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    88
LLVM_CFLAGS=@LLVM_CFLAGS@
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    89
LLVM_LIBS=@LLVM_LIBS@
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    90
LLVM_LDFLAGS=@LLVM_LDFLAGS@
b2cddec593f4 8011388: Support building zero and zeroshark with the new build
omajid
parents: 15790
diff changeset
    91
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    92
ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    93
ALT_EXPORT_PATH=$(HOTSPOT_DIST)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    94
22460
0273c023680c 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 16581
diff changeset
    95
JVM_INTERPRETER:=@JVM_INTERPRETER@
0273c023680c 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 16581
diff changeset
    96
ifeq ($(JVM_INTERPRETER), cpp)
0273c023680c 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 16581
diff changeset
    97
  CC_INTERP=true
0273c023680c 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 16581
diff changeset
    98
endif
0273c023680c 8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents: 16581
diff changeset
    99
14111
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
   100
HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ @STATIC_CXX_SETTING@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   101
# Control wether Hotspot runs Queens test after building
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   102
TEST_IN_BUILD=@TEST_IN_BUILD@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   103
22721
63761da45392 8034788: Rewrite toolchain.m4 to support multiple toolchains per platform.
ihse
parents: 22469
diff changeset
   104
USE_CLANG := @USE_CLANG@
63761da45392 8034788: Rewrite toolchain.m4 to support multiple toolchains per platform.
ihse
parents: 22469
diff changeset
   105
14111
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
   106
# For hotspot, override compiler/tools definition to not include FIXPATH prefix.
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
   107
# Hotspot has its own handling on the Windows path situation.
34103
d03d49538b76 8142983: Enable builds with icecc/icecream
erikj
parents: 33443
diff changeset
   108
CXX:=@CCACHE@ @ICECC@ @HOTSPOT_CXX@
14111
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
   109
LD:=@HOTSPOT_LD@
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
   110
MT:=@HOTSPOT_MT@
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
   111
RC:=@HOTSPOT_RC@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   112
28812
6c36bc1ccc0e 8062223: Upgrading to ccache 1.3.10 disables the use of ccache
erikj
parents: 28809
diff changeset
   113
EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@ $(CFLAGS_CCACHE)
6c36bc1ccc0e 8062223: Upgrading to ccache 1.3.10 disables the use of ccache
erikj
parents: 28809
diff changeset
   114
EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@ $(CFLAGS_CCACHE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   115
EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@
14111
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
   116
14460
10ce34aca00e 8001941: build-infra: --disable-precompiled-headers does not seem to work
tbell
parents: 14111
diff changeset
   117
USE_PRECOMPILED_HEADER=@USE_PRECOMPILED_HEADER@
10ce34aca00e 8001941: build-infra: --disable-precompiled-headers does not seem to work
tbell
parents: 14111
diff changeset
   118
14615
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   119
# Hotspot expects the variable FULL_DEBUG_SYMBOLS=1/0 to control debug symbols
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 16581
diff changeset
   120
# creation.
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 16581
diff changeset
   121
ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
14615
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   122
  FULL_DEBUG_SYMBOLS=1
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 16581
diff changeset
   123
  # Ensure hotspot uses the objcopy that configure located
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 16581
diff changeset
   124
  ALT_OBJCOPY:=$(OBJCOPY)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 16581
diff changeset
   125
else
14615
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   126
  FULL_DEBUG_SYMBOLS=0
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   127
endif
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   128
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   129
# Hotspot expects the variable ZIP_DEBUGINFO_FILES=1/0 and not true/false.
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   130
ifeq ($(ZIP_DEBUGINFO_FILES)$(ENABLE_DEBUG_SYMBOLS), truetrue)
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   131
  ZIP_DEBUGINFO_FILES:=1
20640
66c24722698e 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 16581
diff changeset
   132
else
14615
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   133
  ZIP_DEBUGINFO_FILES:=0
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   134
endif
2616975e69d3 8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents: 14460
diff changeset
   135
28809
6481e27e00ee 8071329: Stop exporting INCLUDE and LIB when building on windows
erikj
parents: 26549
diff changeset
   136
ifeq ($(OPENJDK_TARGET_OS), windows)
6481e27e00ee 8071329: Stop exporting INCLUDE and LIB when building on windows
erikj
parents: 26549
diff changeset
   137
  # On Windows, the Visual Studio toolchain needs the LIB and INCLUDE
6481e27e00ee 8071329: Stop exporting INCLUDE and LIB when building on windows
erikj
parents: 26549
diff changeset
   138
  # environment variables (in Windows path style).
6481e27e00ee 8071329: Stop exporting INCLUDE and LIB when building on windows
erikj
parents: 26549
diff changeset
   139
  export INCLUDE:=@VS_INCLUDE@
6481e27e00ee 8071329: Stop exporting INCLUDE and LIB when building on windows
erikj
parents: 26549
diff changeset
   140
  export LIB:=@VS_LIB@
6481e27e00ee 8071329: Stop exporting INCLUDE and LIB when building on windows
erikj
parents: 26549
diff changeset
   141
endif
6481e27e00ee 8071329: Stop exporting INCLUDE and LIB when building on windows
erikj
parents: 26549
diff changeset
   142
14111
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
   143
# Sneak this in via the spec.gmk file, since we don't want to mess around too much with the Hotspot make files.
2a82ecb35fc7 8000992: Update new build-infra makefiles
ohair
parents: 13697
diff changeset
   144
# This is needed to get the LOG setting to work properly.
21759
e24e22311718 8027566: Remove the old build system
ihse
parents: 20641
diff changeset
   145
include $(SRC_ROOT)/make/common/MakeBase.gmk