LD_LIBRARY_PATH contains an empty entry during build #5796
Labels
A-environment-variables
Area: environment variables
A-linkage
Area: linker issues, dylib, cdylib, shared libraries, so
S-triage
Status: This issue is waiting on initial triage.
Originally filed as rust-lang/rust#52693 but as far as I can tell, this is actually cargo's doing:
I was looking at the output of
x.py
with-vv
for $reasons, and noticed that commands run withLD_LIBRARY_PATH
set to multiple paths, separated with a colon, which is normal, but the last character is a colon, which effectively adds the current working directory in the list of paths used. This is generally considered bad practice.FWIW, when
LD_LIBRARY_PATH
is set before runningx.py
, its original value ends up at the end of theLD_LIBRARY_PATH
that had a trailing colon.Cc: @alexcrichton
The text was updated successfully, but these errors were encountered: