diff options
author | David Ostrovsky <david@ostrovsky.org> | 2012-11-03 21:06:49 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-11-23 23:42:39 +0000 |
commit | 47cf2c9441d2d73c8626ba42dcbad0331274cf43 (patch) | |
tree | 135ba482bc179330638e6fd688bb8113f2b33ca2 /solenv/gbuild/platform/solaris.mk | |
parent | 80086a82883239cad5a6e667c8ff174623e190a2 (diff) |
restore --enable-symbols option
Currently there are 4 different debug options:
--enable-dbgutil (the recommended one)
--enable-debug
--enable-selective-debuginfo
--enable-symbols (for advanced users only)
In this table the properties of each option is shown:
----------------------------------------
options\properties | O | S | D | T | U |
----------------------------------------
production-code | x | - | - | - | - |
----------------------------------------
--enable-symbols | x | x | - | - | - |
----------------------------------------
--enable-debug | - | x | x | x | - |
----------------------------------------
--enable-dbgutil | - | x | x | x | x |
----------------------------------------
where
O: optimization
S: debug symbols
D: debug STL
T: trace facility
U: additional debug utility (object counting)
Note:
--enable-selective-debuginfo has the same properties as --enable-debug
Change-Id: Ib8a28c6162f47526d6bb33f81f53835cd11894b2
Diffstat (limited to 'solenv/gbuild/platform/solaris.mk')
-rw-r--r-- | solenv/gbuild/platform/solaris.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/solaris.mk b/solenv/gbuild/platform/solaris.mk index 52c7a0f49b09..2768fc50d867 100644 --- a/solenv/gbuild/platform/solaris.mk +++ b/solenv/gbuild/platform/solaris.mk @@ -179,6 +179,11 @@ gb_LinkTarget__RPATHS := \ gb_LinkTarget_CFLAGS := $(gb_CFLAGS) $(gb_CFLAGS_WERROR) gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) $(gb_CXXFLAGS_WERROR) +ifeq ($(gb_SYMBOL),$(true)) +gb_LinkTarget_CXXFLAGS += -ggdb2 +gb_LinkTarget_CFLAGS += -ggdb2 +endif + # note that `cat $(extraobjectlist)` is needed to build with older gcc versions, e.g. 4.1.2 on SLED10 # we want to use @$(extraobjectlist) in the long run define gb_LinkTarget__command_dynamiclink |