Rust: Difference between revisions
imported>IgorM m Added to the category "Languages" |
imported>Proski m ldd -> lld (lld is a linker, ldd is a tool to list shared library dependencies) |
||
Line 324: | Line 324: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
=== Using | === Using LLD instead of LD === | ||
If you want to use <code> | If you want to use <code>lld</code>, then the correct way to do this is to use <code>pkgs.llvmPackages.bintools</code>, <em>not</em> <code>pkgs.lld</code>. This is because the former uses a wrapper script that correctly sets <code>rpath</code>. You can find more information about this [https://matklad.github.io/2022/03/14/rpath-or-why-lld-doesnt-work-on-nixos.html here]. | ||
[[Category:Languages]] | [[Category:Languages]] |