provide `libstdc++.so.6` through `LD_LIBRARY_PATH`

This commit is contained in:
DianQK 2024-06-19 22:42:27 +08:00 committed by Nilstrieb
parent b97fd6c266
commit 3f1e015a75
1 changed files with 4 additions and 0 deletions

View File

@ -285,6 +285,10 @@ pkgs.mkShell {
];
# Avoid creating text files for ICEs.
RUSTC_ICE = "0";
# Provide `libstdc++.so.6` for the self-contained lld.
LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [
stdenv.cc.cc.lib
]}";
}
```