common/autoconf/hotspot-spec.gmk.in

Mon, 29 Jun 2020 21:30:12 +0100

author
andrew
date
Mon, 29 Jun 2020 21:30:12 +0100
changeset 2537
a8da94d779b3
parent 2482
5f55e79422a0
child 2498
8c54aca26212
permissions
-rw-r--r--

Merge

ohair@478 1 #
kevinw@2206 2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
ohair@478 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@478 4 #
ohair@478 5 # This code is free software; you can redistribute it and/or modify it
ohair@478 6 # under the terms of the GNU General Public License version 2 only, as
ohair@478 7 # published by the Free Software Foundation. Oracle designates this
ohair@478 8 # particular file as subject to the "Classpath" exception as provided
ohair@478 9 # by Oracle in the LICENSE file that accompanied this code.
ohair@478 10 #
ohair@478 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@478 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@478 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@478 14 # version 2 for more details (a copy is included in the LICENSE file that
ohair@478 15 # accompanied this code).
ohair@478 16 #
ohair@478 17 # You should have received a copy of the GNU General Public License version
ohair@478 18 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@478 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@478 20 #
ohair@478 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@478 22 # or visit www.oracle.com if you need additional information or have any
ohair@478 23 # questions.
ohair@478 24 #
ohair@478 25
ohair@478 26
ohair@478 27 # Chaining of spec files
ohair@478 28 HOTSPOT_SPEC:=$(dir $(SPEC))hotspot-spec.gmk
ohair@478 29 override SPEC=$(HOTSPOT_SPEC)
ohair@478 30 # Now include the base spec.gmk file
ohair@478 31 include $(BASE_SPEC)
ohair@478 32
ohair@478 33 # Additional legacy variables defined for Hotspot
ohair@478 34
ohair@478 35 @SET_OPENJDK@
ohair@478 36
ohair@478 37 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
ohair@478 38 @BUILD_HEADLESS@
ohair@478 39
ohair@478 40 # Legacy setting: OPT or DBG
ohair@478 41 VARIANT:=@VARIANT@
ohair@478 42 # Legacy setting: true or false
ohair@478 43 FASTDEBUG:=@FASTDEBUG@
ohair@478 44 # Legacy setting: debugging the class files?
ohair@478 45 DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@
ohair@478 46
ohair@478 47 ALT_CUPS_HEADERS_PATH:=$(patsubst -I%,%,$(filter -I%,@CUPS_CFLAGS@))
ohair@478 48
ohair@478 49 # The HOSTCC/HOSTCXX is Hotspot terminology for the BUILD_CC/BUILD_CXX, i.e. the
ohair@478 50 # compiler that produces code that can be run on the build platform.
ohair@494 51 HOSTCC:=@FIXPATH@ @BUILD_CC@
ohair@494 52 HOSTCXX:=@FIXPATH@ @BUILD_CXX@
ohair@478 53
ohair@478 54 ####################################################
ohair@478 55 #
ohair@478 56 # Legacy Hotspot support
ohair@478 57
ohair@478 58 # If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here.
ohair@478 59 @DEFINE_CROSS_COMPILE_ARCH@
ohair@478 60
ohair@478 61 # Old name for OPENJDK_TARGET_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc)
ohair@478 62 PLATFORM=$(OPENJDK_TARGET_OS)
ohair@478 63 # 32 or 64 bit
ohair@478 64 ARCH_DATA_MODEL=$(OPENJDK_TARGET_CPU_BITS)
ohair@478 65
ohair@478 66 ALT_BOOTDIR=$(BOOT_JDK)
ohair@478 67 # Can be /sparcv9 or /amd64 on Solaris
ohair@478 68 ISA_DIR=$(OPENJDK_TARGET_CPU_ISADIR)
ohair@478 69 # Yet another name for arch used for an extra subdir below the jvm lib.
ohair@478 70 # Uses i386 and amd64, instead of x86 and x86_64.
ohair@478 71 LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
gthornbr@1585 72 # Set the cpu architecture
gthornbr@1585 73 ARCH=$(OPENJDK_TARGET_CPU_ARCH)
ohair@478 74 # Legacy setting for building for a 64 bit machine.
ohair@478 75 # If yes then this expands to _LP64:=1
ohair@478 76 @LP64@
ohair@478 77
omajid@671 78 # Legacy settings for zero
omajid@671 79 ZERO_ENDIANNESS=$(OPENJDK_TARGET_CPU_ENDIAN)
omajid@671 80 ZERO_LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
omajid@671 81 ZERO_ARCHDEF=@ZERO_ARCHDEF@
omajid@671 82 ZERO_ARCHFLAG=@ZERO_ARCHFLAG@
omajid@671 83 LIBFFI_CFLAGS=@LIBFFI_CFLAGS@
omajid@671 84 LIBFFI_LIBS=@LIBFFI_LIBS@
omajid@671 85
omajid@671 86 # Legacy settings for zeroshark
omajid@671 87 LLVM_CFLAGS=@LLVM_CFLAGS@
omajid@671 88 LLVM_LIBS=@LLVM_LIBS@
omajid@671 89 LLVM_LDFLAGS=@LLVM_LDFLAGS@
omajid@671 90
ohair@478 91 ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR)
ohair@478 92 ALT_EXPORT_PATH=$(HOTSPOT_DIST)
ohair@478 93
simonis@965 94 JVM_INTERPRETER:=@JVM_INTERPRETER@
simonis@965 95 ifeq ($(JVM_INTERPRETER), cpp)
simonis@965 96 CC_INTERP=true
simonis@965 97 endif
simonis@965 98
ohair@494 99 HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ @STATIC_CXX_SETTING@
ohair@478 100 # This is used from the libjvm build for C/C++ code.
erikj@635 101 HOTSPOT_BUILD_JOBS:=$(JOBS)
ohair@478 102 # Control wether Hotspot runs Queens test after building
ohair@478 103 TEST_IN_BUILD=@TEST_IN_BUILD@
ohair@478 104
kevinw@2206 105 USE_CLANG := @USE_CLANG@
kevinw@2206 106
ohair@494 107 # For hotspot, override compiler/tools definition to not include FIXPATH prefix.
ohair@494 108 # Hotspot has its own handling on the Windows path situation.
ohair@494 109 CXX:=@CCACHE@ @HOTSPOT_CXX@
ohair@494 110 LD:=@HOTSPOT_LD@
ohair@494 111 MT:=@HOTSPOT_MT@
ohair@494 112 RC:=@HOTSPOT_RC@
ohair@478 113
andrew@1862 114 EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@ $(NO_DELETE_NULL_POINTER_CHECKS_CFLAG) \
andrew@1862 115 $(NO_LIFETIME_DSE_CFLAG) $(CXXSTD_CXXFLAG)
ohair@478 116 EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@
ohair@478 117 EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@
sgehwolf@2482 118 EXTRA_ASFLAGS=@LEGACY_EXTRA_ASFLAGS@
ohair@494 119
tbell@512 120 USE_PRECOMPILED_HEADER=@USE_PRECOMPILED_HEADER@
tbell@512 121
ddehaven@1304 122 # Universal binaries on macosx, mirror MACOSX_UNIVERSAL
ddehaven@1304 123 ALT_MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
ddehaven@1304 124
erikj@533 125 # Hotspot expects the variable FULL_DEBUG_SYMBOLS=1/0 to control debug symbols
ihse@839 126 # creation.
ihse@839 127 ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
erikj@533 128 FULL_DEBUG_SYMBOLS=1
ihse@839 129 # Ensure hotspot uses the objcopy that configure located
ihse@839 130 ALT_OBJCOPY:=$(OBJCOPY)
ihse@839 131 else
erikj@533 132 FULL_DEBUG_SYMBOLS=0
erikj@533 133 endif
erikj@533 134
erikj@533 135 # Hotspot expects the variable ZIP_DEBUGINFO_FILES=1/0 and not true/false.
erikj@533 136 ifeq ($(ZIP_DEBUGINFO_FILES)$(ENABLE_DEBUG_SYMBOLS), truetrue)
erikj@533 137 ZIP_DEBUGINFO_FILES:=1
dcubed@854 138 else
erikj@533 139 ZIP_DEBUGINFO_FILES:=0
erikj@533 140 endif
erikj@533 141
ohair@494 142 # Sneak this in via the spec.gmk file, since we don't want to mess around too much with the Hotspot make files.
ohair@494 143 # This is needed to get the LOG setting to work properly.
ihse@912 144 include $(SRC_ROOT)/make/common/MakeBase.gmk

mercurial