267 #AOUT_FLAGS += -Xlinker -export-dynamic 268 else 269 # Enable linker optimization 270 LFLAGS += -Xlinker -O1 271 272 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj 273 SONAMEFLAG = -Xlinker -soname=SONAME 274 275 # Build shared library 276 SHARED_FLAG = -shared $(VM_PICFLAG) 277 278 # Keep symbols even they are not used 279 AOUT_FLAGS += -Xlinker -export-dynamic 280 endif 281 282 #------------------------------------------------------------------------ 283 # Debug flags 284 285 # Use the stabs format for debugging information (this is the default 286 # on gcc-2.91). It's good enough, has all the information about line 287 # numbers and local variables, and libjvm_g.so is only about 16M. 288 # Change this back to "-g" if you want the most expressive format. 289 # (warning: that could easily inflate libjvm_g.so to 150M!) 290 # Note: The Itanium gcc compiler crashes when using -gstabs. 291 DEBUG_CFLAGS/ia64 = -g 292 DEBUG_CFLAGS/amd64 = -g 293 DEBUG_CFLAGS/arm = -g 294 DEBUG_CFLAGS/ppc = -g 295 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 296 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) 297 DEBUG_CFLAGS += -gstabs 298 endif 299 300 # DEBUG_BINARIES overrides everything, use full -g debug information 301 ifeq ($(DEBUG_BINARIES), true) 302 DEBUG_CFLAGS = -g 303 CFLAGS += $(DEBUG_CFLAGS) 304 endif 305 306 # If we are building HEADLESS, pass on to VM 307 # so it can set the java.awt.headless property 308 ifdef HEADLESS 309 CFLAGS += -DHEADLESS | 267 #AOUT_FLAGS += -Xlinker -export-dynamic 268 else 269 # Enable linker optimization 270 LFLAGS += -Xlinker -O1 271 272 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj 273 SONAMEFLAG = -Xlinker -soname=SONAME 274 275 # Build shared library 276 SHARED_FLAG = -shared $(VM_PICFLAG) 277 278 # Keep symbols even they are not used 279 AOUT_FLAGS += -Xlinker -export-dynamic 280 endif 281 282 #------------------------------------------------------------------------ 283 # Debug flags 284 285 # Use the stabs format for debugging information (this is the default 286 # on gcc-2.91). It's good enough, has all the information about line 287 # numbers and local variables, and libjvm.so is only about 16M. 288 # Change this back to "-g" if you want the most expressive format. 289 # (warning: that could easily inflate libjvm.so to 150M!) 290 # Note: The Itanium gcc compiler crashes when using -gstabs. 291 DEBUG_CFLAGS/ia64 = -g 292 DEBUG_CFLAGS/amd64 = -g 293 DEBUG_CFLAGS/arm = -g 294 DEBUG_CFLAGS/ppc = -g 295 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 296 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) 297 DEBUG_CFLAGS += -gstabs 298 endif 299 300 # DEBUG_BINARIES overrides everything, use full -g debug information 301 ifeq ($(DEBUG_BINARIES), true) 302 DEBUG_CFLAGS = -g 303 CFLAGS += $(DEBUG_CFLAGS) 304 endif 305 306 # If we are building HEADLESS, pass on to VM 307 # so it can set the java.awt.headless property 308 ifdef HEADLESS 309 CFLAGS += -DHEADLESS |