comparison make/bsd/makefiles/gcc.make @ 12859:f509b8f4699b

7165611: implement Full Debug Symbols on MacOS X hotspot Summary: Add MacOS X FDS support to hotspot; add minimal MacOS X FDS import support to jdk; add MacOS X FDS support to install; add MacOS X FDS support to root. Reviewed-by: erikj, sla, dholmes, rdurbin, tbell, ihse
author dcubed
date Tue, 15 Oct 2013 08:25:43 -0700
parents f2512d89ad0c
children 096c224171c4 d16be2b85802 10c237e58446
comparison
equal deleted inserted replaced
12858:2f8728d92483 12859:f509b8f4699b
81 endif 81 endif
82 82
83 AS = $(CC) -c 83 AS = $(CC) -c
84 endif 84 endif
85 85
86 ifeq ($(OS_VENDOR), Darwin)
87 ifeq ($(DSYMUTIL),)
88 DSYMUTIL=dsymutil
89 endif
90 endif
86 91
87 ifeq ($(USE_CLANG), true) 92 ifeq ($(USE_CLANG), true)
88 CC_VER_MAJOR := $(shell $(CC) -v 2>&1 | grep version | sed "s/.*version \([0-9]*\.[0-9]*\).*/\1/" | cut -d'.' -f1) 93 CC_VER_MAJOR := $(shell $(CC) -v 2>&1 | grep version | sed "s/.*version \([0-9]*\.[0-9]*\).*/\1/" | cut -d'.' -f1)
89 CC_VER_MINOR := $(shell $(CC) -v 2>&1 | grep version | sed "s/.*version \([0-9]*\.[0-9]*\).*/\1/" | cut -d'.' -f2) 94 CC_VER_MINOR := $(shell $(CC) -v 2>&1 | grep version | sed "s/.*version \([0-9]*\.[0-9]*\).*/\1/" | cut -d'.' -f2)
90 else 95 else
432 DEBUG_CFLAGS/ppc = -g 437 DEBUG_CFLAGS/ppc = -g
433 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 438 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
434 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) 439 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
435 DEBUG_CFLAGS += -gstabs 440 DEBUG_CFLAGS += -gstabs
436 endif 441 endif
442
443 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
444 FASTDEBUG_CFLAGS/ia64 = -g
445 FASTDEBUG_CFLAGS/amd64 = -g
446 FASTDEBUG_CFLAGS/arm = -g
447 FASTDEBUG_CFLAGS/ppc = -g
448 FASTDEBUG_CFLAGS += $(FASTDEBUG_CFLAGS/$(BUILDARCH))
449 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
450 ifeq ($(USE_CLANG), true)
451 # Clang doesn't understand -gstabs
452 FASTDEBUG_CFLAGS += -g
453 else
454 FASTDEBUG_CFLAGS += -gstabs
455 endif
456 endif
457
458 OPT_CFLAGS/ia64 = -g
459 OPT_CFLAGS/amd64 = -g
460 OPT_CFLAGS/arm = -g
461 OPT_CFLAGS/ppc = -g
462 OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
463 ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
464 ifeq ($(USE_CLANG), true)
465 # Clang doesn't understand -gstabs
466 OPT_CFLAGS += -g
467 else
468 OPT_CFLAGS += -gstabs
469 endif
470 endif
471 endif
437 endif 472 endif
438 473
439 # If we are building HEADLESS, pass on to VM 474 # If we are building HEADLESS, pass on to VM
440 # so it can set the java.awt.headless property 475 # so it can set the java.awt.headless property
441 ifdef HEADLESS 476 ifdef HEADLESS