You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LD_LIBRARY_PATH breaks users' executable in the following ways:
Executables not part of devshell might pick up libraries from LD_LIBRARY_PATH, this can lead to incompatible libraries being loaded and crash executables. This is very likely to happen on NixOS with different release channels or on Non-NixOS distributions
Executables compiled in devshell won't run if the environment is unset or users tries to start them outside of devshell
Instead a minimal cc/ld wrapper could set an rpath and interpreter:
LD_LIBRARY_PATH
breaks users' executable in the following ways:Instead a minimal cc/ld wrapper could set an rpath and interpreter:
Dynamic linker can be obtained from the wrapped version at build time:
$(cat $NIX_CC/nix-support/dynamic-linker)
The text was updated successfully, but these errors were encountered: