170 # Enable linker optimization 171 LFLAGS += -Xlinker -O1 172 173 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file. 174 MAPFLAG = -Xlinker --version-script=FILENAME 175 else 176 MAPFLAG = -Xlinker -M -Xlinker FILENAME 177 endif 178 179 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj 180 SONAMEFLAG = -Xlinker -soname=SONAME 181 182 # Build shared library 183 SHARED_FLAG = -shared 184 185 #------------------------------------------------------------------------ 186 # Debug flags 187 188 # Use the stabs format for debugging information (this is the default 189 # on gcc-2.91). It's good enough, has all the information about line 190 # numbers and local variables, and libjvm_g.so is only about 16M. 191 # Change this back to "-g" if you want the most expressive format. 192 # (warning: that could easily inflate libjvm_g.so to 150M!) 193 # Note: The Itanium gcc compiler crashes when using -gstabs. 194 DEBUG_CFLAGS/ia64 = -g 195 DEBUG_CFLAGS/amd64 = -g 196 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 197 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) 198 DEBUG_CFLAGS += -gstabs 199 endif | 170 # Enable linker optimization 171 LFLAGS += -Xlinker -O1 172 173 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file. 174 MAPFLAG = -Xlinker --version-script=FILENAME 175 else 176 MAPFLAG = -Xlinker -M -Xlinker FILENAME 177 endif 178 179 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj 180 SONAMEFLAG = -Xlinker -soname=SONAME 181 182 # Build shared library 183 SHARED_FLAG = -shared 184 185 #------------------------------------------------------------------------ 186 # Debug flags 187 188 # Use the stabs format for debugging information (this is the default 189 # on gcc-2.91). It's good enough, has all the information about line 190 # numbers and local variables, and libjvm.so is only about 16M. 191 # Change this back to "-g" if you want the most expressive format. 192 # (warning: that could easily inflate libjvm.so to 150M!) 193 # Note: The Itanium gcc compiler crashes when using -gstabs. 194 DEBUG_CFLAGS/ia64 = -g 195 DEBUG_CFLAGS/amd64 = -g 196 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 197 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) 198 DEBUG_CFLAGS += -gstabs 199 endif |