提交 d78de3e8 编写于 作者: D dbuck

8033251: Use DWARF debug symbols for Linux 32-bit as default

Reviewed-by: tbell
上级 08d2397d
...@@ -331,50 +331,20 @@ endif ...@@ -331,50 +331,20 @@ endif
ifeq ($(DEBUG_BINARIES), true) ifeq ($(DEBUG_BINARIES), true)
CFLAGS += -g CFLAGS += -g
else else
# Use the stabs format for debugging information (this is the default
# on gcc-2.91). It's good enough, has all the information about line
# numbers and local variables, and libjvm.so is only about 16M.
# Change this back to "-g" if you want the most expressive format.
# (warning: that could easily inflate libjvm.so to 150M!)
# Note: The Itanium gcc compiler crashes when using -gstabs.
DEBUG_CFLAGS/ia64 = -g
DEBUG_CFLAGS/amd64 = -g
DEBUG_CFLAGS/ppc64 = -g
DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
ifeq ($(USE_CLANG), true) DEBUG_CFLAGS += -g
# Clang doesn't understand -gstabs
DEBUG_CFLAGS/$(BUILDARCH) = -g
else
DEBUG_CFLAGS/$(BUILDARCH) = -gstabs
endif
endif endif
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
FASTDEBUG_CFLAGS/ia64 = -g
FASTDEBUG_CFLAGS/amd64 = -g
FASTDEBUG_CFLAGS/ppc64 = -g
FASTDEBUG_CFLAGS += $(FASTDEBUG_CFLAGS/$(BUILDARCH)) FASTDEBUG_CFLAGS += $(FASTDEBUG_CFLAGS/$(BUILDARCH))
ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),) ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
ifeq ($(USE_CLANG), true) FASTDEBUG_CFLAGS/$(BUILDARCH) = -g
# Clang doesn't understand -gstabs
FASTDEBUG_CFLAGS/$(BUILDARCH) = -g
else
FASTDEBUG_CFLAGS/$(BUILDARCH) = -gstabs
endif
endif endif
OPT_CFLAGS/ia64 = -g
OPT_CFLAGS/amd64 = -g
OPT_CFLAGS/ppc64 = -g
OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH)) OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
ifeq ($(OPT_CFLAGS/$(BUILDARCH)),) ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
ifeq ($(USE_CLANG), true) OPT_CFLAGS/$(BUILDARCH) = -g
# Clang doesn't understand -gstabs
OPT_CFLAGS/$(BUILDARCH) = -g
else
OPT_CFLAGS/$(BUILDARCH) = -gstabs
endif
endif endif
endif endif
endif endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册