FYI: Cleanup of debug options

Norbert Thiebaud nthiebaud at gmail.com
Mon Nov 5 09:06:42 PST 2012


On Mon, Nov 5, 2012 at 10:59 AM, Stephan Bergmann <sbergman at redhat.com> wrote:
> On 11/05/2012 05:15 PM, Michael Meeks wrote:
>>
>>         Having done a from-clean build, and been unable to debug because
>> my
>> autogen.lastrun contains --enable-symbols - and that now fails to do
>> anything - I did some digging to try to restore that functionality.
>>
>>         It appears that prepending:
>>
>> CFLAGS=-Os -g
>> CXXFLAGS=-Os -g
>>
>>         to your autogen.lastrun will restore the original --enable-symbols
>> functionality; and of course leaving that option there does no harm if
>> you want to share your autogen.lastrun with older versions.
>>
>>         Why do I extensively use that option, though I'm not a packager:
>>
>>         * I like to run the code the end-user runs - warts and all.
>
>
> Note that what the end user runs is -O2 rather than -Os IIUC.

actually that is platform and even sometime source dependent.
which makes global level carpet bombing using CFLAGS/CXXFLAGS/LDFLAGS
a not necessarily appealing option.

Norbert


More information about the LibreOffice mailing list