make/linux/makefiles/gcc.make

Print this page




 188 LFLAGS += -Xlinker -O1
 189 
 190 # If this is a --hash-style=gnu system, use --hash-style=both
 191 #   The gnu .hash section won't work on some Linux systems like SuSE 10.
 192 _HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | grep -- '--hash-style=gnu')
 193 ifneq ($(_HAS_HASH_STYLE_GNU),)
 194   LDFLAGS_HASH_STYLE = -Wl,--hash-style=both
 195 endif
 196 LFLAGS += $(LDFLAGS_HASH_STYLE)
 197 
 198 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
 199 MAPFLAG = -Xlinker --version-script=FILENAME
 200 
 201 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
 202 SONAMEFLAG = -Xlinker -soname=SONAME
 203 
 204 # Build shared library
 205 SHARED_FLAG = -shared
 206 
 207 # Keep symbols even they are not used
 208 AOUT_FLAGS += -export-dynamic
 209 
 210 #------------------------------------------------------------------------
 211 # Debug flags
 212 
 213 # Use the stabs format for debugging information (this is the default
 214 # on gcc-2.91). It's good enough, has all the information about line
 215 # numbers and local variables, and libjvm_g.so is only about 16M.
 216 # Change this back to "-g" if you want the most expressive format.
 217 # (warning: that could easily inflate libjvm_g.so to 150M!)
 218 # Note: The Itanium gcc compiler crashes when using -gstabs.
 219 DEBUG_CFLAGS/ia64  = -g
 220 DEBUG_CFLAGS/amd64 = -g
 221 DEBUG_CFLAGS/arm   = -g
 222 DEBUG_CFLAGS/ppc   = -g
 223 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 224 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
 225 DEBUG_CFLAGS += -gstabs
 226 endif
 227 
 228 # DEBUG_BINARIES overrides everything, use full -g debug information


 188 LFLAGS += -Xlinker -O1
 189 
 190 # If this is a --hash-style=gnu system, use --hash-style=both
 191 #   The gnu .hash section won't work on some Linux systems like SuSE 10.
 192 _HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | grep -- '--hash-style=gnu')
 193 ifneq ($(_HAS_HASH_STYLE_GNU),)
 194   LDFLAGS_HASH_STYLE = -Wl,--hash-style=both
 195 endif
 196 LFLAGS += $(LDFLAGS_HASH_STYLE)
 197 
 198 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
 199 MAPFLAG = -Xlinker --version-script=FILENAME
 200 
 201 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj
 202 SONAMEFLAG = -Xlinker -soname=SONAME
 203 
 204 # Build shared library
 205 SHARED_FLAG = -shared
 206 
 207 # Keep symbols even they are not used
 208 AOUT_FLAGS += -Wl,-export-dynamic
 209 
 210 #------------------------------------------------------------------------
 211 # Debug flags
 212 
 213 # Use the stabs format for debugging information (this is the default
 214 # on gcc-2.91). It's good enough, has all the information about line
 215 # numbers and local variables, and libjvm_g.so is only about 16M.
 216 # Change this back to "-g" if you want the most expressive format.
 217 # (warning: that could easily inflate libjvm_g.so to 150M!)
 218 # Note: The Itanium gcc compiler crashes when using -gstabs.
 219 DEBUG_CFLAGS/ia64  = -g
 220 DEBUG_CFLAGS/amd64 = -g
 221 DEBUG_CFLAGS/arm   = -g
 222 DEBUG_CFLAGS/ppc   = -g
 223 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 224 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
 225 DEBUG_CFLAGS += -gstabs
 226 endif
 227 
 228 # DEBUG_BINARIES overrides everything, use full -g debug information