[Libreoffice] [GSoC] merged library

Matúš Kukan matus.kukan at gmail.com
Tue Aug 16 11:13:18 PDT 2011

Hi there,

I'm trying to allow using one bigger shared library instead of more,
often used small ones.
Something like described here:
search for BIG_SVX parameter at the top. Was it ever possible to do
one shared library?

I'm attaching diff (against gbuild branch in core), not something to
apply but to look into if the way I'm doing that is at least partially
Probably there will be different names for variables, also I'm not
sure about change in configure.in ...

That way is possible to merge just libraries from gbuildized modules.

I have changed creating services.rdb (uri parameter to load merged
library if possible)
and gb_LIST_LIBS is to control which libraries can link against the merged one.
They have to be build in tail_build, now sc, sd, sw.
It would be nice to gbuildize desktop (I'm not working on it, it's
huge and mess) for this and change linking of sofficeapp library, or
even replace it.
But this could be also possible if we were just building desktop after

Of course there are problems:
- I had to disable unit test in sc (sc_test_filters) when trying
changes because I was getting error which I was not able to debug yet.
    hmm, but I can't see this problem now, never mind.
more serious one:
- There are more objects with the same name in different modules.
   So, is it possible to create one object file for each module and
make these variables, classes.. invisible outside object file and then
create big library from them?
I would guess it's not possible and we have to rename or get rid of
them somehow?

It is not much to merge now but easy to add when more modules will be
gbuildized, so at least something.

and gbuild status: I have pushed change of some modules, there were
things to repair (my mistakes), thanks goes to Caolán, David and
Problems are with: sal, salhelper, cppu, cppuhelper, scripting,
i18npool, avmedia (still not pushed) (some of them could be merged
I have began with these when I thought it would be easy to finish, it
was not clever but hopefully I will finish that after GSoC.

that's all for now,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: merged-lib.diff
Type: text/x-patch
Size: 7267 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110816/c19496cc/attachment.bin>

More information about the LibreOffice mailing list