Compiling a port statically

Jeffrey Walton noloader at gmail.com
Mon Dec 7 14:16:54 UTC 2020


On Mon, Dec 7, 2020 at 2:39 AM Ryan Schmidt <ryandesign at macports.org> 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


More information about the macports-users mailing list