Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist LD_LIBRARY_PATH when invoking ldd #185

Merged
merged 3 commits into from Sep 4, 2021

Conversation

JonathonReinhart
Copy link
Owner

This fixes #184.

This phase of staticx, library path discovery, is intended to run in
whatever environment the user has created. That means we should keep the
value of LD_LIBRARY_PATH when invoking ldd.

The existing ('if libpath') already handled the case where LD_LIBRARY_PATH
is in the env and properly prepended to it. But LD_LIBRARY_PATH could
never be in the empty env.

This change simply keeps LD_LIBRARY_PATH.

Fixes #184
We already check 'if libpath' so there's no need for the empty list when
None will suffice.
Copy link

@m0nzderr m0nzderr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, surly that fixes #184.

@JonathonReinhart JonathonReinhart merged commit 3d83c08 into master Sep 4, 2021
@JonathonReinhart JonathonReinhart deleted the 184-persist-LD_LIBRARY_PATH branch September 4, 2021 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants