lib dependency confusion

Vincent Habchi vince at macports.org
Thu Jan 11 17:31:21 UTC 2018


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.




More information about the macports-users mailing list