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


https://bugs.documentfoundation.org/show_bug.cgi?id=91480

--- Comment #1 from Ashod Nakashian <ashodnakashian@yahoo.com> ---
After spending some time tackling this, it's clear that it isn't as
straightforward as I was led to believe.

The main issue is that, while the compiler (CC and CXX) is replaced by the gcc-
and g++-wrapper, the linker isn't replaced. LD isn't used at all, instead,
these external projects (the handful I looked into) explicitly use LIBTOOL,
which points to a script generated by configure. So defining LIBTOOL doesn't
help here.

In all the cases I've checked, setting --enable-shared and --disable-static do
not produce the desired result. At least in the case of libwps it's clear that
shared libraries are not supported (or are broken if they were at some point).
If the project in question compiles successfully, it always generates a static
library.

So the solution is to patch configure (in each project) such that shared
libraries would be supported. To do that we would most probably need to wrap MS
link.exe in the same way that gcc-wrapper wraps cl.exe. But first we need to
make sure that Makefile does call LD, which can then be proxied as necessary.

Another way is to patch the VS projects where they are available to produce
DLL, then compile using devenv.com (part of VS) instead of $(MAKE). This should
be the simplest solution, but many projects might not even have these VS
projects, although those could be created as well.


If there is a smarter way that I missed, I'd be interested to be hinted at the
right direction.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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.