Windows static lib: link required system libs (#30)

This commit is contained in:
Ștefan Talpalaru 2022-03-22 18:46:47 +01:00 committed by GitHub
parent c381daf84f
commit fb3f2c30b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ rocksType rocksdb_checkpoint_t
when LibrocksbStaticArgs != "":
{.pragma: importrocks, importc, cdecl.}
{.passL: LibrocksbStaticArgs.}
when defined(windows):
{.passL: "-lshlwapi -lrpcrt4".}
else:
when shouldUseNativeLinking():
{.pragma: importrocks, importc, cdecl.}