[Libreoffice] Link external libraries before internal ones

Petr Mladek pmladek at suse.cz
Fri Jul 29 07:55:59 PDT 2011


Petr Mladek píše v Pá 29. 07. 2011 v 16:40 +0200:
> Hi Bjoern,
> 
> --as-needed link flag has been enabled by default since openSUSE-11.3 or
> so. It requires to mention libraries in the link flags in the right
> order. I have troubles to link libqstart_gtklx.so. I get:
> 
> In fact, the 3rd party libraries should be mentioned at the end of the
> command line because neither of use symbols from the internal libraries.
> 
> I am a bit lost how to solve this with the GNU make. Could you please
> help me?

Heh, I have asked for help too fast. The attached patch does the job
here.

I have to try a clean build. If there are no objections, I will do this
change in master.


Best Regards,
Petr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: link-as-needed-fix-solenv.diff
Type: text/x-patch
Size: 988 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110729/3a15554f/attachment.bin>


More information about the LibreOffice mailing list