We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7766ab7 commit bbffd83Copy full SHA for bbffd83
book/src/tutorial-3.md
@@ -7,13 +7,18 @@ bindings to `bzip2` at compile time. The resulting bindings will be written to
7
`$OUT_DIR/bindings.rs` where `$OUT_DIR` is chosen by `cargo` and is something
8
like `./target/debug/build/bindgen-tutorial-bzip2-sys-afc7747d7eafd720/out/`.
9
10
+Note that the associated shared object to `bz2` is `libbz2.so`. In general, a `lib<name>.so` should be referenced in the build file by `<name>`.
11
+
12
```rust,ignore
13
extern crate bindgen;
14
15
use std::env;
16
use std::path::PathBuf;
17
18
fn main() {
19
+ // Tell cargo to look for shared libraries in the specified directory
20
+ println!("cargo:rustc-link-search=/path/to/lib");
21
22
// Tell cargo to tell rustc to link the system bzip2
23
// shared library.
24
println!("cargo:rustc-link-lib=bz2");
0 commit comments