3 ms·
Or dynamically link and use ldd to identify and copy libraries the program is linking: ldd hello
by BeefWellington 4y ago
Or dynamically link and use ldd to identify and copy libraries the program is linking:
ldd hello
- chriswarbo 4y agoThis is why I build containers using Nix (plus the reproducibility, caching, etc.): since everything has a path containing an unguessable hash, all dependencies must be referred to by their absolute path (either directly, or indirectly via an env var, etc.). That makes it trivial to find all the dependencies of a file (whether they're dynamic libraries, interpreter packages, image files, etc.), transitively, and tar them all up into a self-contained container :)