[Libreoffice] -Wl,-O1 (was Reducing -ggdb3 to -ggdb2)

Lubos Lunak l.lunak at suse.cz
Wed Apr 13 05:29:31 PDT 2011


On Tuesday 12 of April 2011, Bjoern Michaelsen wrote:
> Hi Lubos,
>
> On Tue, 12 Apr 2011 16:25:58 +0200
>
> Lubos Lunak <l.lunak at suse.cz> wrote:
> > > solenv/inc/unxgcc.mk:LINKFLAGSOPTIMIZE*=-Wl,-O1
> >
> >  No, I forgot to mention, that's not the one:
> > [...]
>
> This is because of the way the migration to gbuild started: By
> "emulating" the compile/link commands of the old build system as a
> first step.
> As vbaswobj.uno.so was using the LINKFLAGSOPTIMIZE it had the same link
> flags explicitly added in Library_vbaswobj.mk.
> No, I dont think it makes sense to link libs different. But it seems
> to me that the old build system did it just as incomsistent:
> LINKFLAGSOPTIMIZE is only used in LINKERVERSIONMAPFLAG, so libs
> without a version map would not use the optimizations.

 I see. Is the attached patch the right way to implement (not) using -Wl,-O1 
in gbuild globally based on the debuglevel?

-- 
 Lubos Lunak
 l.lunak at suse.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkeropt.diff
Type: text/x-diff
Size: 1229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110413/7e998ef8/attachment-0001.diff>


More information about the LibreOffice mailing list