Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 30.10.2012 22:03, Kohei Yoshida wrote:
...

inside a module should just enable debug symbols, and nothing but symbols.

So, this script can add -g to the CXXFLAGS, but unfortunately the symbols get stripped during linking because of -Wl,-S option passed to the linker.

grep -r LINKERSTRIPDEBUGFLAGS *
LinkTarget.mk:gb_LinkTarget__get_stripldflags=$(if $(call gb_LinkTarget__debug_enabled,$(1)),,$(gb_LINKERSTRIPDEBUGFLAGS))
platform/unxgcc.mk:gb_LINKERSTRIPDEBUGFLAGS := -Wl,-S

But why something like that would be needed anyway? If you don't want symbols, don't use -g and If you do have symbols don't strip it! I would recommend to follow the rule of least surprise: no one expects the symbols to be stripped. Would it be an option to remove that magic behaviour or at least turn it off per default?

Regards
David




Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.