<div dir="ltr">I wonder if we can do it easer using @rpath prefix and passing possible library locations in ld flags.<br><div><a href="https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/RunpathDependentLibraries.html">https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/RunpathDependentLibraries.html</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 20, 2014 at 10:21 AM, Stephan Bergmann <span dir="ltr"><<a href="mailto:sbergman@redhat.com" target="_blank">sbergman@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/19/2014 05:22 PM, Robert Antoni Buj i Gelonch wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The previous message was for the master branch, the next output was<br>
obtained in 4.3 branch:<br>
</blockquote>
<br></span>
There are two situations to consider:<br>
<br>
1 Genuine LO code links against an external dylib A. A's install name needs to contain a special filepath segment denoting where A is located in the installset, see the comment at the top of solenv/bin/<a href="http://macosx-change-install-names.pl" target="_blank">macosx-change-<u></u>install-names.pl</a> and e.g.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$(if $(filter MACOSX,$(OS)),--prefix=/@.____<u></u>______________________________<u></u>________________OOO) \<br>
</blockquote>
<br>
in external/cairo/<u></u>ExternalProject_cairo.mk.<br>
<br>
2 An external dylib B links against another external dylib A (from the same or another external project). A needs to be set up according to (1). The ExternalProject_*.mk for B needs to explicitly call macosx-change-install-names on B, see e.g.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$(if $(filter MACOSX,$(OS)),&& $(PERL) \<br>
$(SRCDIR)/solenv/bin/<a href="http://macosx-change-install-names.pl" target="_blank">macosx-<u></u>change-install-names.pl</a> shl OOO \<br>
$(gb_Package_SOURCEDIR_icu)/<u></u>source/lib/libicudata$(gb_<u></u>Library_DLLEXT).$(icu_VERSION) \<br>
$(gb_Package_SOURCEDIR_icu)/<u></u>source/lib/libicuuc$(gb_<u></u>Library_DLLEXT).$(icu_VERSION) \<br>
$(gb_Package_SOURCEDIR_icu)/<u></u>source/lib/libicui18n$(gb_<u></u>Library_DLLEXT).$(icu_VERSION)<u></u>) \<br>
</blockquote>
<br>
in external/icu/ExternalProject_<u></u><a href="http://icu.mk" target="_blank">icu.mk</a>.<br>
<br>
Stephan<br>
______________________________<u></u>_________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.<u></u>org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/libreoffice</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><a href="http://about.me/rbuj" target="_blank">http://about.me/rbuj</a><br></div></div>
</div>