335 |
335 |
336 # DEBUG_BINARIES uses full -g debug information for all configs |
336 # DEBUG_BINARIES uses full -g debug information for all configs |
337 ifeq ($(DEBUG_BINARIES), true) |
337 ifeq ($(DEBUG_BINARIES), true) |
338 CFLAGS += -g |
338 CFLAGS += -g |
339 else |
339 else |
340 # Use the stabs format for debugging information (this is the default |
|
341 # on gcc-2.91). It's good enough, has all the information about line |
|
342 # numbers and local variables, and libjvm.so is only about 16M. |
|
343 # Change this back to "-g" if you want the most expressive format. |
|
344 # (warning: that could easily inflate libjvm.so to 150M!) |
|
345 # Note: The Itanium gcc compiler crashes when using -gstabs. |
|
346 DEBUG_CFLAGS/ia64 = -g |
|
347 DEBUG_CFLAGS/amd64 = -g |
|
348 DEBUG_CFLAGS/arm = -g |
|
349 DEBUG_CFLAGS/ppc = -g |
|
350 DEBUG_CFLAGS/ppc64 = -g |
|
351 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) |
340 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) |
352 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) |
341 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) |
353 ifeq ($(USE_CLANG), true) |
342 DEBUG_CFLAGS += -g |
354 # Clang doesn't understand -gstabs |
343 endif |
355 DEBUG_CFLAGS += -g |
344 |
356 else |
|
357 DEBUG_CFLAGS += -gstabs |
|
358 endif |
|
359 endif |
|
360 |
|
361 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
345 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
362 FASTDEBUG_CFLAGS/ia64 = -g |
346 FASTDEBUG_CFLAGS += $(FASTDEBUG_CFLAGS/$(BUILDARCH)) |
363 FASTDEBUG_CFLAGS/amd64 = -g |
|
364 FASTDEBUG_CFLAGS/arm = -g |
|
365 FASTDEBUG_CFLAGS/ppc = -g |
|
366 FASTDEBUG_CFLAGS/ppc64 = -g |
|
367 FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) |
|
368 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),) |
347 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),) |
369 ifeq ($(USE_CLANG), true) |
348 FASTDEBUG_CFLAGS += -g |
370 # Clang doesn't understand -gstabs |
349 endif |
371 FASTDEBUG_CFLAGS += -g |
350 |
372 else |
|
373 FASTDEBUG_CFLAGS += -gstabs |
|
374 endif |
|
375 endif |
|
376 |
|
377 OPT_CFLAGS/ia64 = -g |
|
378 OPT_CFLAGS/amd64 = -g |
|
379 OPT_CFLAGS/arm = -g |
|
380 OPT_CFLAGS/ppc = -g |
|
381 OPT_CFLAGS/ppc64 = -g |
|
382 OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH)) |
351 OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH)) |
383 ifeq ($(OPT_CFLAGS/$(BUILDARCH)),) |
352 ifeq ($(OPT_CFLAGS/$(BUILDARCH)),) |
384 ifeq ($(USE_CLANG), true) |
353 OPT_CFLAGS += -g |
385 # Clang doesn't understand -gstabs |
|
386 OPT_CFLAGS += -g |
|
387 else |
|
388 OPT_CFLAGS += -gstabs |
|
389 endif |
|
390 endif |
354 endif |
391 endif |
355 endif |
392 endif |
356 endif |
393 |
357 |
394 # If we are building HEADLESS, pass on to VM |
358 # If we are building HEADLESS, pass on to VM |