diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2023-09-06 11:29:50 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2023-09-06 11:29:50 +0100 |
commit | 4edfc5681bcbd1c0c5aeee8058c9de8a9aef3e9d (patch) | |
tree | f0f45607e86a964df5ab6af31d3a05468483dc49 | |
parent | Newsfile (diff) | |
download | synapse-rei/flake_gcc_etc.tar.xz |
unset LD_LIBRARY_PATH github/rei/flake_gcc_etc rei/flake_gcc_etc
-rw-r--r-- | flake.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix index 8d88fb5982..781f3832e0 100644 --- a/flake.nix +++ b/flake.nix @@ -240,6 +240,19 @@ URI YAMLLibYAML ]}"; + + # Clear the LD_LIBRARY_PATH environment variable on shell init. + # + # By default, devenv will set LD_LIBRARY_PATH to point to .devenv/profile/lib. This causes + # issues when we include `gcc` as a dependency to build C libraries, as the version of glibc + # that the development environment's cc compiler uses may differ from that of the system. + # + # When LD_LIBRARY_PATH is set, system tools will attempt to use the development environment's + # libraries. Which, when built against an different glibc version lead, to "version 'GLIBC_X.YY' not + # found" errors. + enterShell = '' + unset LD_LIBRARY_PATH + ''; } ]; }; |