[Libreoffice-commits] .: extension libs should have no RPATH
David Tardon
dtardon at redhat.com
Tue Apr 24 04:17:41 PDT 2012
On Fri, Apr 20, 2012 at 09:53:22AM +0200, Stephan Bergmann wrote:
>
> On Mac OS X, LINKFLAGSRUNPATH_xxx is a misnomer. It does not
> specify any RPATH, but rather a special install name token (those
> "@___...___xxx") that is in turn used by
> solenv/bin/macosx-changes-install-names.pl to determine how other
> libraries and executables reference the given library (and thus is
> only needed for libraries that others can link against).
>
> (For the record, a related topic is how libraries within oxt
> extensions link against other libraries. They can legitimately only
> link against published URE libs or against other libs within the
> same extension, where the latter apparently does not happen. For
> URE libs, the way this is achieved is different on the different
> platforms: On Linux, we guarantee that the URE libs are already
> available in the process, so the extension lib can mention them as
> DT_NEEDED without having an RPATH through which they could be found.
> On Mac OS X, we guarantee that there is a symlink urelibs next to
> the executalbe, so the extension lib can reference them via
> @executable_path/urelibs. And on Windows, we guarantee that the URE
> libs are available on PATH, anyway.)
Thanks for the detailed explanation. It is much appreciated.
D.
More information about the LibreOffice
mailing list