aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpravic <[email protected]>2016-04-13 12:19:03 +0300
committerpravic <[email protected]>2016-04-13 12:19:03 +0300
commit0717e1ebb5c5a551b633718e7efb83f6430e5f8e (patch)
treee8128459ca6933b42fc9443fcb497a330401bd1a
parentset relative path to native libs (diff)
downloadwinapi-kmd-rs-0717e1ebb5c5a551b633718e7efb83f6430e5f8e.tar.xz
winapi-kmd-rs-0717e1ebb5c5a551b633718e7efb83f6430e5f8e.zip
note about staticlib compilation
-rw-r--r--README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index dd6d5b8..8016986 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,9 @@ To compile you need the following:
* MSVC itself, either VS 2015 or just MSVC Build Tools.
* Rust environment for the Windows drivers: [kmd-env-rs](https://github.com/pravic/kmd-env-rs).
+As workaround you can compile drivers as `#[crate_type="staticlib"]` and link them manually (see *examples/03.urandom/build.cmd*).
+
+
Setting up:
```
@@ -33,8 +36,8 @@ cd km\examples\01.minimal\
cargo build --release
```
-If linker fails with error *cannot open input file 'ntoskrnl.lib'*,
-open `kmd-env-rs/.cargo/config` file and replace `../../../` with the full path to the *kmd-env-rs* directory.
+If linker fails with error "*cannot open input file 'ntoskrnl.lib'*",
+open `kmd-env-rs/.cargo/config` file and replace `../../../` with the full path to the "*kmd-env-rs*" directory.
### Examples