MSxDOS / ntapi

Rust FFI bindings for Native API
Apache License 2.0
100 stars 33 forks source link

Allow linking to system ntdll #4

Closed mati865 closed 4 years ago

mati865 commented 4 years ago

Currently building with WINAPI_NO_BUNDLED_LIBRARIES fails with this error: lld: error: unable to find library -lwinapi_ntdll.

This PR fixes it by linking to system library in that case, similarly to wianpi: https://github.com/retep998/winapi-rs/blob/785f7f30a69c70687864ac650aebc123e942c1b3/build.rs#L494-L502

mati865 commented 4 years ago

Thank you!