From 5e17e6a101db034171d9e28d8c4df0a5cb1bebde Mon Sep 17 00:00:00 2001 From: DianQK Date: Wed, 19 Jun 2024 22:42:27 +0800 Subject: [PATCH] provide `libstdc++.so.6` through `LD_LIBRARY_PATH` --- src/building/suggested.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/building/suggested.md b/src/building/suggested.md index 884e4915d..a4133edf2 100644 --- a/src/building/suggested.md +++ b/src/building/suggested.md @@ -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 + ]}"; } ```