As Aron said this is not automatic but usually works if you use libtools and
properly formed cmake rules.
OS X has two kind of dynamic objects:
.dylib are dynamic libraries
.bundle are “dynamic objects” (plugins and other)
On linux there is no distinctions between the two and everything is a “.so”.
OS X dynamic will load files in .so - otherwise sage on OS X wouldn’t
work.
A well formed dynamic object has a property called install_name and if it
is set everything should be all right when you link to other libraries or an
executable. libtools and cmake usually get this right, beware of other
build systems such as scons or custom made.
A few ticket to get familiar with failures of that scheme:
http://trac.sagemath.org/ticket/17588
http://trac.sagemath.org/ticket/16017
http://trac.sagemath.org/ticket/16044
So a few packages that have historical issue with install_name:
R
boost
Yosemite overall does a better job in the dynamic loading department
and a lack of install_name is not necessarily setting you up for failure
anymore, but there could still be some issues lurking here and there.
otool -L $some_object
is the command you want to inspect those properties.
François
> --
> You received this message because you are subscribed to the Google Groups "hashdist" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
hashdist+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.