If you want the library to move with the program, the program has to be linked 
using relative paths to the library/libraries. Then they can be moved together, 
as long as they retain the same relative path relationship.

> On Dec 7, 2020, at 09:16, Jeffrey Walton <[email protected]> wrote:
> 
> On Mon, Dec 7, 2020 at 2:39 AM Ryan Schmidt <[email protected]> wrote:
>> 
>> 
>> 
>> On Dec 7, 2020, at 01:01, Jeffrey Walton wrote:
>> 
>>> Static linking also allows you to move binaries around the filesystem
>>> with dicking around with otool and install_name_tool.
>> 
>> Since programs are linked to libraries by their absolute path, you can move 
>> a program anywhere in the filesystem even if it is linked to dynamic 
>> libraries.
> 
> And when the library moves with the program?
> 
>>> Stack Overflow
>>> has several questions related to OS X programs that are linked to
>>> OpenSSL. The programs had a lot of trouble once bundled because of the
>>> antique version of OpenSSL supplied by Apple.
>> 
>> Don't see what that has to do with this thread.
> 
> It's unfortunate you do not understand your use cases.
> 
> Jeff
> 

Reply via email to