https://bz.apache.org/ooo/show_bug.cgi?id=126843
Issue ID: 126843
Issue Type: DEFECT
Summary: --enable-symbols doesn't apply to gbuild modules
Product: Build Tools
Version: 4.2.0-dev
Hardware: All
OS: All
Status: CONFIRMED
Severity: Normal
Priority: P5 (lowest)
Component: solenv
Assignee: [email protected]
Reporter: [email protected]
When ./configure --enable-symbols is run, only dmake modules have debug symbols
added, the gbuild ones (eg. vcl, sfx2) don't and have to be separately built
with "build debug=true" in their directories in order to get debug symbols.
This is obvious if you examine any stack trace of an AOO instance compiled with
--enable-symbols.
Only dmake even mentions ENABLE_SYMBOLS:
main/solenv]$ grep ENABLE_SYMBOLS * -R
inc/unxmaccx.mk:.IF "$(ENABLE_SYMBOLS)"=="SMALL"
inc/unxlng.mk:.IF "$(ENABLE_SYMBOLS)"=="SMALL"
inc/unxmacxi.mk:.IF "$(ENABLE_SYMBOLS)"=="SMALL"
inc/unxmacci.mk:.IF "$(ENABLE_SYMBOLS)"=="SMALL"
inc/settings.mk:.IF ("$(ENABLE_CRASHDUMP)"!="" &&
"$(ENABLE_CRASHDUMP)"!="DUMMY") || "$(ENABLE_SYMBOLS)"!=""
inc/settings.mk:.ENDIF # ("$(ENABLE_CRASHDUMP)"!="" &&
"$(ENABLE_CRASHDUMP)"!="DUMMY") || "$(ENABLE_SYMBOLS)"!=""
inc/unxfbsd.mk:.IF "$(ENABLE_SYMBOLS)"=="SMALL"
inc/unxbsdi2.mk:.IF "$(ENABLE_SYMBOLS)"=="SMALL"
Debugging for gbuild is configured in main/solenv/gbuild/gbuild.mk in this
section:
ifneq ($(strip $(DEBUG)$(debug)),)
gb_DEBUGLEVEL := 2
else
ifeq ($(gb_PRODUCT),$(true))
gb_DEBUGLEVEL := 0
else
gb_DEBUGLEVEL := 1
endif
endif
and then the compiler flags set in eg. main/solenv/gbuild/platform/linux.mk:
ifeq ($(gb_DEBUGLEVEL),2)
gb_LinkTarget_CXXFLAGS += -ggdb3 -finline-limit=0 -fno-inline
-fno-default-inline
gb_LinkTarget_CFLAGS += -ggdb3 -finline-limit=0 -fno-inline -fno-default-inline
endif
--
You are receiving this mail because:
You are the assignee for the issue.