lib dependency confusion

Ryan Schmidt ryandesign at macports.org
Fri Jan 12 13:49:53 UTC 2018


On Jan 11, 2018, at 11:31, Vincent Habchi wrote:

> Alternatively to what Ryan just mentioned, you can statically link the executable, which means that you embed all the code the executable and its dependencies need into the main code. This result in a bigger executable (more code) but less bloated than a full install with has a full-blown copy of all librairies.
> 
> In order to do that, you can link against static archives (.a files) rather than dylibs.

We don't want ports to link to static libraries if linking to dynamic libraries is a viable alternative.



More information about the macports-users mailing list