make/linux/makefiles/sparcWorks.make

Fri, 28 Aug 2020 07:38:21 +0100

author
andrew
date
Fri, 28 Aug 2020 07:38:21 +0100
changeset 9995
633a3d28d2fe
parent 4153
b9a9ed0f8eeb
child 6876
710a3c8b516e
permissions
-rw-r--r--

8251120: [8u] HotSpot build assumes ENABLE_JFR is set to either true or false
Summary: Only test for ENABLE_JFR being true, and assume undefined == false
Reviewed-by: neugens

dcubed@485 1 #
mikael@4153 2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
dcubed@485 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dcubed@485 4 #
dcubed@485 5 # This code is free software; you can redistribute it and/or modify it
dcubed@485 6 # under the terms of the GNU General Public License version 2 only, as
dcubed@485 7 # published by the Free Software Foundation.
dcubed@485 8 #
dcubed@485 9 # This code is distributed in the hope that it will be useful, but WITHOUT
dcubed@485 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dcubed@485 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dcubed@485 12 # version 2 for more details (a copy is included in the LICENSE file that
dcubed@485 13 # accompanied this code).
dcubed@485 14 #
dcubed@485 15 # You should have received a copy of the GNU General Public License version
dcubed@485 16 # 2 along with this work; if not, write to the Free Software Foundation,
dcubed@485 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dcubed@485 18 #
trims@1907 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 # or visit www.oracle.com if you need additional information or have any
trims@1907 21 # questions.
dcubed@485 22 #
dcubed@485 23 #
dcubed@485 24
dcubed@485 25 #------------------------------------------------------------------------
erikj@3518 26 # CC, CXX & AS
dcubed@485 27
erikj@3600 28 # If a SPEC is not set already, then use these defaults.
erikj@3600 29 ifeq ($(SPEC),)
erikj@3600 30 CXX = CC
erikj@3600 31 CC = cc
erikj@3600 32 AS = $(CC) -c
dcubed@485 33
erikj@3600 34 HOSTCXX = $(CXX)
erikj@3600 35 HOSTCC = $(CC)
erikj@3600 36 endif
roland@2683 37
dcubed@485 38 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
dcubed@485 39 ARCHFLAG/i486 = -m32
dcubed@485 40 ARCHFLAG/amd64 = -m64
dcubed@485 41
dcubed@485 42 CFLAGS += $(ARCHFLAG)
dcubed@485 43 AOUT_FLAGS += $(ARCHFLAG)
dcubed@485 44 LFLAGS += $(ARCHFLAG)
dcubed@485 45 ASFLAGS += $(ARCHFLAG)
dcubed@485 46
dcubed@485 47 #------------------------------------------------------------------------
dcubed@485 48 # Compiler flags
dcubed@485 49
dcubed@485 50 # position-independent code
dcubed@485 51 PICFLAG = -KPIC
dcubed@485 52
dcubed@485 53 CFLAGS += $(PICFLAG)
dcubed@485 54 # no more exceptions
dcubed@485 55 CFLAGS += -features=no%except
dcubed@485 56 # Reduce code bloat by reverting back to 5.0 behavior for static initializers
dcubed@485 57 CFLAGS += -features=no%split_init
dcubed@485 58 # allow zero sized arrays
dcubed@485 59 CFLAGS += -features=zla
dcubed@485 60
dcubed@485 61 # Use C++ Interpreter
dcubed@485 62 ifdef CC_INTERP
dcubed@485 63 CFLAGS += -DCC_INTERP
dcubed@485 64 endif
dcubed@485 65
dcubed@485 66 # We don't need libCstd.so and librwtools7.so, only libCrun.so
dcubed@485 67 CFLAGS += -library=Crun
dcubed@485 68 LIBS += -lCrun
dcubed@485 69
dcubed@485 70 CFLAGS += -mt
dcubed@485 71 LFLAGS += -mt
dcubed@485 72
dcubed@485 73 # Compiler warnings are treated as errors
dcubed@485 74 #WARNINGS_ARE_ERRORS = -errwarn=%all
dcubed@485 75 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS)
dcubed@485 76 # Special cases
dcubed@485 77 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
dcubed@485 78
dcubed@485 79 # The flags to use for an Optimized build
dcubed@485 80 OPT_CFLAGS+=-xO4
dcubed@485 81 OPT_CFLAGS/NOOPT=-xO0
dcubed@485 82
stefank@2314 83 # Flags for creating the dependency files.
stefank@2314 84 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
stefank@2314 85 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d)
stefank@2314 86 endif
stefank@2314 87
stefank@2325 88 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
stefank@2325 89 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
stefank@2325 90
dcubed@485 91 #------------------------------------------------------------------------
dcubed@485 92 # Linker flags
dcubed@485 93
dcubed@485 94 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
dcubed@485 95 MAPFLAG = -Wl,--version-script=FILENAME
dcubed@485 96
dcubed@485 97 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
dcubed@485 98 SONAMEFLAG = -h SONAME
dcubed@485 99
dcubed@485 100 # Build shared library
dcubed@485 101 SHARED_FLAG = -G
dcubed@485 102
dcubed@485 103 #------------------------------------------------------------------------
dcubed@485 104 # Debug flags
dcubed@485 105 DEBUG_CFLAGS += -g
dcubed@485 106 FASTDEBUG_CFLAGS = -g0
dcubed@485 107

mercurial