google / google/rust_icu

Find a way to avoid `LD_LIBRARY_PATH` when running tests

Open
#9 2 comments 1 reaction 0 assignees View on GitHub
enhancement help wanted
Dominant language
Rust
Stars
140
Forks
34
Avg merge
5h 5m
Merged PRs (30d)
4

Description

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: https://github.com/rust-lang/cargo/issues/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.