make/linux/makefiles/gcc.make

Print this page


   1 #
   2 # Copyright (c) 1999, 2011, 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.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  


 212 AOUT_FLAGS += -Xlinker -export-dynamic
 213 
 214 #------------------------------------------------------------------------
 215 # Debug flags
 216 
 217 # Use the stabs format for debugging information (this is the default
 218 # on gcc-2.91). It's good enough, has all the information about line
 219 # numbers and local variables, and libjvm_g.so is only about 16M.
 220 # Change this back to "-g" if you want the most expressive format.
 221 # (warning: that could easily inflate libjvm_g.so to 150M!)
 222 # Note: The Itanium gcc compiler crashes when using -gstabs.
 223 DEBUG_CFLAGS/ia64  = -g
 224 DEBUG_CFLAGS/amd64 = -g
 225 DEBUG_CFLAGS/arm   = -g
 226 DEBUG_CFLAGS/ppc   = -g
 227 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 228 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
 229 DEBUG_CFLAGS += -gstabs
 230 endif
 231 
 232 ifneq ($(OBJCOPY),)
 233   FASTDEBUG_CFLAGS/ia64  = -g
 234   FASTDEBUG_CFLAGS/amd64 = -g
 235   FASTDEBUG_CFLAGS/arm   = -g
 236   FASTDEBUG_CFLAGS/ppc   = -g
 237   FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 238   ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
 239     FASTDEBUG_CFLAGS += -gstabs
 240   endif
 241 
 242   OPT_CFLAGS/ia64  = -g
 243   OPT_CFLAGS/amd64 = -g
 244   OPT_CFLAGS/arm   = -g
 245   OPT_CFLAGS/ppc   = -g
 246   OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
 247   ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
 248     OPT_CFLAGS += -gstabs
 249   endif
 250 endif
 251 
 252 # DEBUG_BINARIES overrides everything, use full -g debug information
   1 #
   2 # Copyright (c) 1999, 2012, 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.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  


 212 AOUT_FLAGS += -Xlinker -export-dynamic
 213 
 214 #------------------------------------------------------------------------
 215 # Debug flags
 216 
 217 # Use the stabs format for debugging information (this is the default
 218 # on gcc-2.91). It's good enough, has all the information about line
 219 # numbers and local variables, and libjvm_g.so is only about 16M.
 220 # Change this back to "-g" if you want the most expressive format.
 221 # (warning: that could easily inflate libjvm_g.so to 150M!)
 222 # Note: The Itanium gcc compiler crashes when using -gstabs.
 223 DEBUG_CFLAGS/ia64  = -g
 224 DEBUG_CFLAGS/amd64 = -g
 225 DEBUG_CFLAGS/arm   = -g
 226 DEBUG_CFLAGS/ppc   = -g
 227 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 228 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
 229 DEBUG_CFLAGS += -gstabs
 230 endif
 231 
 232 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 233   FASTDEBUG_CFLAGS/ia64  = -g
 234   FASTDEBUG_CFLAGS/amd64 = -g
 235   FASTDEBUG_CFLAGS/arm   = -g
 236   FASTDEBUG_CFLAGS/ppc   = -g
 237   FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 238   ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
 239     FASTDEBUG_CFLAGS += -gstabs
 240   endif
 241 
 242   OPT_CFLAGS/ia64  = -g
 243   OPT_CFLAGS/amd64 = -g
 244   OPT_CFLAGS/arm   = -g
 245   OPT_CFLAGS/ppc   = -g
 246   OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
 247   ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
 248     OPT_CFLAGS += -gstabs
 249   endif
 250 endif
 251 
 252 # DEBUG_BINARIES overrides everything, use full -g debug information