Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid adding DYLD_FALLBACK_LIBRARY_PATH defaults when it is set
The macos dynamic linker behavior wrt DYLD_FALLBACK_LIBRARY_PATH is to use the value it is set with, and if there is no such value (the environment variable is either not set or set but empty), it uses a default value of $HOME/lib:/usr/local/lib:/usr/lib. Currently, cargo takes the value of DYLD_FALLBACK_LIBRARY_PATH, prepends its paths to it, and then unconditionally adds $HOME/lib:/usr/local/lib:/usr/lib, which in principle, shouldn't happen if DYLD_FALLBACK_LIBRARY_PATH was set originally.
- Loading branch information