Skip to content

Commit

Permalink
Document for static linking
Browse files Browse the repository at this point in the history
From #136
  • Loading branch information
termoshtt committed Apr 24, 2019
1 parent 10cbd91 commit 0c1e4f6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Expand Up @@ -60,7 +60,7 @@ You should link a LAPACKE implementation to a final crate (like binary executabl
[dependencies]
ndarray = "0.12"
ndarray-linalg = "0.10"
openblas-src = "0.5" # or another backend of your choice
openblas-src = "0.7" # or another backend of your choice

```

Expand All @@ -71,3 +71,14 @@ extern crate ndarray;
extern crate ndarray_linalg;
extern crate openblas_src; // or another backend of your choice
```

### Link statically

If you needs to link the backend (OpenBLAS/Netlib) statically, please add following to your Cargo.toml

```toml
[dependencies]
openblas-src = { version = "0.7.0", features = ["static"] }
```

Intel-MKL backend does not support static linking.

0 comments on commit 0c1e4f6

Please sign in to comment.