diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-05-07 20:58:44 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-05-08 11:30:25 +0200 |
commit | c8fa9bd8849f0503b3803465e8ce119581e11e33 (patch) | |
tree | 610b39465070109f7b6c6515349ed0f651e9a105 /solenv/gbuild/Module.mk | |
parent | ae17a1966d58faaa7350a85f7e91f16ee3fd1fb5 (diff) |
dis-entangle --enable-symbols and --enable-debug:
OOo used to use debug level this way:
0 is default for product build
1 for --enable-dbgutil
2 for environment variable debug=t, regardless of dbgutil setting
in LO these have now morphed into:
0 is default for product build
1 for environment variable debug=t
2 for --enable-dbgutil (at some intermediate stage in the past)
1 for --enable-dbgutil (today)
This has caused a lot of confusion and some things were not converted
properly, including a check in LinkTarget.mk.
Developers should use --enable-debug to get useful information,
including full debug info and assertions.
--enable-symbols is not intended for developers, but for people
who need their builds to be able to produce useful stack traces;
--enable-symbols is for example set unconditionally in the Fedora RPM
spec, and for this purpose disabling of inlining is not wanted.
It is unlikely that somebody wants symbols for only part of the build,
and consequently a different mechanism is used to set the corresponding
flags: they are set into global gb_LinkTarget_C{,XX}FLAGS.
So move the selective symbol feature back to --enable-debug.
(this substantially reverts db8df57acd601ed084bd0122683e1bd066a4f143)
Diffstat (limited to 'solenv/gbuild/Module.mk')
-rw-r--r-- | solenv/gbuild/Module.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/gbuild/Module.mk b/solenv/gbuild/Module.mk index 486a2fe7d2ac..e5f87f0f5cd4 100644 --- a/solenv/gbuild/Module.mk +++ b/solenv/gbuild/Module.mk @@ -180,8 +180,8 @@ showmodules : # enable if: no "-MODULE/" defined AND ["all" defined OR "MODULE/" defined] gb_Module__debug_enabled = \ - $(and $(if $(filter -$(1)/,$(ENABLE_SYMBOLS_FOR)),,$(true)),\ - $(filter all $(1)/,$(ENABLE_SYMBOLS_FOR))) + $(and $(if $(filter -$(1)/,$(ENABLE_DEBUG_FOR)),,$(true)),\ + $(filter all $(1)/,$(ENABLE_DEBUG_FOR))) define gb_Module_Module gb_Module_ALLMODULES += $(1) |