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


On 05/11/12 17:59, Stephan Bergmann 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.

yes...and no. both are true actually:

[0] ms@bastet:/master > git grep -- "-O2" solenv/gbuild/ | wc -l
18
[0] ms@bastet:/master > git grep -- "-Os" solenv/gbuild/ | wc -l
10
[0] ms@bastet:/master > git grep -- "-O " solenv/gbuild/platform/ | wc -l
2

so if you want to do profiling you simply have to look up which one your
particular architecture uses first to get meaningful numbers.


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.