< prev index next >

common/autoconf/hotspot-spec.gmk.in

Print this page
rev 1735 : 8151841: Build needs additional flags to compile with GCC 6 [plus parts of 8149647 & 8032045]
Summary: C++ standard needs to be explicitly set and some optimisations turned off to build on GCC 6
Reviewed-by: erikj, dholmes, kbarrett
   1 #
   2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   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


  92 ALT_EXPORT_PATH=$(HOTSPOT_DIST)
  93 
  94 JVM_INTERPRETER:=@JVM_INTERPRETER@
  95 ifeq ($(JVM_INTERPRETER), cpp)
  96   CC_INTERP=true
  97 endif
  98 
  99 HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ @STATIC_CXX_SETTING@
 100 # This is used from the libjvm build for C/C++ code.
 101 HOTSPOT_BUILD_JOBS:=$(JOBS)
 102 # Control wether Hotspot runs Queens test after building
 103 TEST_IN_BUILD=@TEST_IN_BUILD@
 104 
 105 # For hotspot, override compiler/tools definition to not include FIXPATH prefix.
 106 # Hotspot has its own handling on the Windows path situation.
 107 CXX:=@CCACHE@ @HOTSPOT_CXX@
 108 LD:=@HOTSPOT_LD@
 109 MT:=@HOTSPOT_MT@
 110 RC:=@HOTSPOT_RC@
 111 
 112 EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@

 113 EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@
 114 EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@
 115 
 116 USE_PRECOMPILED_HEADER=@USE_PRECOMPILED_HEADER@
 117 
 118 # Universal binaries on macosx, mirror MACOSX_UNIVERSAL
 119 ALT_MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
 120 
 121 # Hotspot expects the variable FULL_DEBUG_SYMBOLS=1/0 to control debug symbols
 122 # creation.
 123 ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
 124   FULL_DEBUG_SYMBOLS=1
 125   # Ensure hotspot uses the objcopy that configure located
 126   ALT_OBJCOPY:=$(OBJCOPY)
 127 else
 128   FULL_DEBUG_SYMBOLS=0
 129 endif
 130 
 131 # Hotspot expects the variable ZIP_DEBUGINFO_FILES=1/0 and not true/false.
 132 ifeq ($(ZIP_DEBUGINFO_FILES)$(ENABLE_DEBUG_SYMBOLS), truetrue)
   1 #
   2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
   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


  92 ALT_EXPORT_PATH=$(HOTSPOT_DIST)
  93 
  94 JVM_INTERPRETER:=@JVM_INTERPRETER@
  95 ifeq ($(JVM_INTERPRETER), cpp)
  96   CC_INTERP=true
  97 endif
  98 
  99 HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ @STATIC_CXX_SETTING@
 100 # This is used from the libjvm build for C/C++ code.
 101 HOTSPOT_BUILD_JOBS:=$(JOBS)
 102 # Control wether Hotspot runs Queens test after building
 103 TEST_IN_BUILD=@TEST_IN_BUILD@
 104 
 105 # For hotspot, override compiler/tools definition to not include FIXPATH prefix.
 106 # Hotspot has its own handling on the Windows path situation.
 107 CXX:=@CCACHE@ @HOTSPOT_CXX@
 108 LD:=@HOTSPOT_LD@
 109 MT:=@HOTSPOT_MT@
 110 RC:=@HOTSPOT_RC@
 111 
 112 EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@ $(NO_DELETE_NULL_POINTER_CHECKS_CFLAG) \
 113                                    $(NO_LIFETIME_DSE_CFLAG) $(CXXSTD_CXXFLAG)
 114 EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@
 115 EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@
 116 
 117 USE_PRECOMPILED_HEADER=@USE_PRECOMPILED_HEADER@
 118 
 119 # Universal binaries on macosx, mirror MACOSX_UNIVERSAL
 120 ALT_MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
 121 
 122 # Hotspot expects the variable FULL_DEBUG_SYMBOLS=1/0 to control debug symbols
 123 # creation.
 124 ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
 125   FULL_DEBUG_SYMBOLS=1
 126   # Ensure hotspot uses the objcopy that configure located
 127   ALT_OBJCOPY:=$(OBJCOPY)
 128 else
 129   FULL_DEBUG_SYMBOLS=0
 130 endif
 131 
 132 # Hotspot expects the variable ZIP_DEBUGINFO_FILES=1/0 and not true/false.
 133 ifeq ($(ZIP_DEBUGINFO_FILES)$(ENABLE_DEBUG_SYMBOLS), truetrue)
< prev index next >