How do I make cargo pass -L
linker flag to rustc invocations?
It is now possible using .cargo/config
.
See https://github.com/rust-lang/cargo/issues/1109 and http://doc.crates.io/config.html.
Not yet. However, you can use a custom makefile for given Cargo project instead.
For example, Servo uses the Skia library by having a Rust wrapper in the same cargo project, and a build
key that calls a custom makefile.
You can do something similar in this case, for now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With