[−][src]Macro cargo_emit::rustc_link_lib
Tells Cargo to pass $lib
to the compiler as a -l
flag.
This is equivalent to:
println!("cargo:rustc-link-lib=[$kind=]$name");
Examples
Useful for telling the linker what libraries should be linked.
cargo_emit::rustc_link_lib! { "ssl", // same as `=> "dylib"` "ruby" => "static", "CoreFoundation" => "framework", }