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
{{ message }}
Repository navigation
[c/c++] minimal cc/ld wrapper instead of LD_LIBRARY_PATH #104
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:
Activity
Mic92 commentedon Mar 11, 2021
Also related to #102