-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cargo can't set rpath into library or binary #9966
Comments
There is an rpath setting in the profiles you can set, does that help? |
When I use conda, there is an environment variable that stores the library path like $CONDA_PREFIX. If it is set in the configuration file, the environment variable cannot be automatically matched. |
The link arguments should be passed to the binary. Can you provide a reproduction or any other details to indicate what you've tried and why it doesn't appear to be working? If I try a simple binary with your example, I get:
where that is a path I added in |
Closing as there doesn't appear to be enough information here to move this forward. If the questions above could be answered, preferably with a full reproduction and set of steps, feel free to re-open. |
build.rs
println!("cargo:rustc-link-arg=-Wl,-rpath={}", &libdir);
I set rpath in this way but it didn't take effect.
How to set rpath into library or binary?
Thank you for your reply.
The text was updated successfully, but these errors were encountered: