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

Find a way to avoid LD_LIBRARY_PATH when running tests #9

Open
filmil opened this issue Dec 23, 2019 · 2 comments
Open

Find a way to avoid LD_LIBRARY_PATH when running tests #9

filmil opened this issue Dec 23, 2019 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@filmil
Copy link
Member

filmil commented Dec 23, 2019

IIUC it is not possible to tell cargo to bake in the absolute path of a non-default library when compiling.

For example, one would do this in case of gcc:
https://stackoverflow.com/questions/8835108/how-to-specify-non-default-shared-library-path-in-gcc-linux-getting-error-whil (i.e. set -rpath=... to the correct value).

See here: rust-lang/cargo#5077

I tried to modify the resulting binaries with patchelf but that somehow didn't work either, but I didn't really dig deep enough to understand why. Filing this bug so I don't forget.

@filmil filmil added enhancement New feature or request help wanted Extra attention is needed labels May 8, 2020
@problame
Copy link

problame commented Feb 2, 2021

In case it helps: rust-lang/cargo#5077 (comment)

@filmil
Copy link
Member Author

filmil commented Feb 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants