Rust: Difference between revisions
imported>MiniBill m Fix lack of escaping in shellHook |
imported>Tshakah m Add section on getting Rust working with ldd |
||
Line 330: | Line 330: | ||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> | ||
=== Using LDD instead of LD === | |||
If you want to use <code>ldd</code>, then the correct way to do this is to use <code>pkgs.llvmPackages.bintools</code>, <em>not</em> <code>pkgs.ldd</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]. |