Jump to content

Rust: Difference between revisions

No change in size ,  8 October 2023
m
ldd -> lld (lld is a linker, ldd is a tool to list shared library dependencies)
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 LDD instead of LD ===
=== Using LLD 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].
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]]
Anonymous user