make/linux/makefiles/gcc.make

Print this page




 214 AOUT_FLAGS += -Xlinker -export-dynamic
 215 
 216 #------------------------------------------------------------------------
 217 # Debug flags
 218 
 219 # DEBUG_BINARIES uses full -g debug information for all configs
 220 ifeq ($(DEBUG_BINARIES), true)
 221   CFLAGS += -g
 222 else
 223   # Use the stabs format for debugging information (this is the default
 224   # on gcc-2.91). It's good enough, has all the information about line
 225   # numbers and local variables, and libjvm_g.so is only about 16M.
 226   # Change this back to "-g" if you want the most expressive format.
 227   # (warning: that could easily inflate libjvm_g.so to 150M!)
 228   # Note: The Itanium gcc compiler crashes when using -gstabs.
 229   DEBUG_CFLAGS/ia64  = -g
 230   DEBUG_CFLAGS/amd64 = -g
 231   DEBUG_CFLAGS/arm   = -g
 232   DEBUG_CFLAGS/ppc   = -g
 233   DEBUG_CFLAGS/ppc64 = -g

 234   DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 235   ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
 236     DEBUG_CFLAGS += -gstabs
 237   endif
 238   
 239   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 240     FASTDEBUG_CFLAGS/ia64  = -g
 241     FASTDEBUG_CFLAGS/amd64 = -g
 242     FASTDEBUG_CFLAGS/arm   = -g
 243     FASTDEBUG_CFLAGS/ppc   = -g
 244     FASTDEBUG_CFLAGS/ppc64 = -g

 245     FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 246     ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
 247       FASTDEBUG_CFLAGS += -gstabs
 248     endif
 249   
 250     OPT_CFLAGS/ia64  = -g
 251     OPT_CFLAGS/amd64 = -g
 252     OPT_CFLAGS/arm   = -g
 253     OPT_CFLAGS/ppc   = -g
 254     OPT_CFLAGS/ppc64 = -g

 255     OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
 256     ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
 257       OPT_CFLAGS += -gstabs
 258     endif
 259   endif
 260 endif
 261 
 262 # If we are building HEADLESS, pass on to VM
 263 # so it can set the java.awt.headless property
 264 ifdef HEADLESS
 265 CFLAGS += -DHEADLESS
 266 endif
 267 
 268 # We are building Embedded for a small device
 269 # favor code space over speed
 270 ifdef MINIMIZE_RAM_USAGE
 271 CFLAGS += -DMINIMIZE_RAM_USAGE
 272 endif


 214 AOUT_FLAGS += -Xlinker -export-dynamic
 215 
 216 #------------------------------------------------------------------------
 217 # Debug flags
 218 
 219 # DEBUG_BINARIES uses full -g debug information for all configs
 220 ifeq ($(DEBUG_BINARIES), true)
 221   CFLAGS += -g
 222 else
 223   # Use the stabs format for debugging information (this is the default
 224   # on gcc-2.91). It's good enough, has all the information about line
 225   # numbers and local variables, and libjvm_g.so is only about 16M.
 226   # Change this back to "-g" if you want the most expressive format.
 227   # (warning: that could easily inflate libjvm_g.so to 150M!)
 228   # Note: The Itanium gcc compiler crashes when using -gstabs.
 229   DEBUG_CFLAGS/ia64  = -g
 230   DEBUG_CFLAGS/amd64 = -g
 231   DEBUG_CFLAGS/arm   = -g
 232   DEBUG_CFLAGS/ppc   = -g
 233   DEBUG_CFLAGS/ppc64 = -g
 234   DEBUG_CFLAGS/ppc64le = -g
 235   DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 236   ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
 237     DEBUG_CFLAGS += -gstabs
 238   endif
 239   
 240   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 241     FASTDEBUG_CFLAGS/ia64  = -g
 242     FASTDEBUG_CFLAGS/amd64 = -g
 243     FASTDEBUG_CFLAGS/arm   = -g
 244     FASTDEBUG_CFLAGS/ppc   = -g
 245     FASTDEBUG_CFLAGS/ppc64 = -g
 246     FASTDEBUG_CFLAGS/ppc64le = -g
 247     FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 248     ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
 249       FASTDEBUG_CFLAGS += -gstabs
 250     endif
 251   
 252     OPT_CFLAGS/ia64  = -g
 253     OPT_CFLAGS/amd64 = -g
 254     OPT_CFLAGS/arm   = -g
 255     OPT_CFLAGS/ppc   = -g
 256     OPT_CFLAGS/ppc64 = -g
 257     OPT_CFLAGS/ppc64le = -g
 258     OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
 259     ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
 260       OPT_CFLAGS += -gstabs
 261     endif
 262   endif
 263 endif
 264 
 265 # If we are building HEADLESS, pass on to VM
 266 # so it can set the java.awt.headless property
 267 ifdef HEADLESS
 268 CFLAGS += -DHEADLESS
 269 endif
 270 
 271 # We are building Embedded for a small device
 272 # favor code space over speed
 273 ifdef MINIMIZE_RAM_USAGE
 274 CFLAGS += -DMINIMIZE_RAM_USAGE
 275 endif