C: Difference between revisions
imported>Mic92 No edit summary |
imported>Mic92 minor readability improvement |
||
Line 9: | Line 9: | ||
linker will find them. Dynamically linked libraries will have a run-time linker (also known as <code>ld.so</code>) set as an interpreter. | linker will find them. Dynamically linked libraries will have a run-time linker (also known as <code>ld.so</code>) set as an interpreter. | ||
This linker reads <code>/etc/ld.so.conf</code> to figure out where to find libraries. | This linker reads <code>/etc/ld.so.conf</code> to figure out where to find libraries. | ||
In nixpkgs in contrast this information is provided by environment variables | In nixpkgs in contrast this information is provided by environment variables. | ||
be set based on the build inputs that are given when building a package or | Those will be set based on the build inputs that are given when building a package or | ||
when loading a nix expression into a <code>nix-shell</code>. | when loading a nix expression into a <code>nix-shell</code>. | ||
Therefore it is not sufficient to just install libraries with <code>nix-env</code> into the profile | Therefore it is not sufficient to just install libraries with <code>nix-env</code> into the profile |