use dynamic linking instead of dlopen on all Linux distros
- also document the need for "librocksdb-dev" on Debian
This commit is contained in:
parent
d8cfc392bc
commit
3c0ab43e1e
|
@ -12,6 +12,10 @@ A Nim wrapper for [Facebook's RocksDB](https://github.com/facebook/rocksdb), a p
|
|||
|
||||
Nim-RocksDB currently provides a wrapper for the low-level functions of RocksDB
|
||||
|
||||
## Requirements
|
||||
|
||||
A RocksDB installation that provides `librocksdb.so`. This means that on Debian, and possibly on other Linux distros, you need "librocksdb-dev", not just a versioned "librocksdbX.Y" package that only provides `librocksdb.so.X.Y.Z`.
|
||||
|
||||
## Usage
|
||||
|
||||
See [simple_example](examples/simple_example.nim)
|
||||
|
|
|
@ -47,8 +47,6 @@ else:
|
|||
|
||||
proc shouldUseNativeLinking(): bool {.compileTime.} =
|
||||
when defined(linux):
|
||||
let uname = staticExec("uname -a")
|
||||
if uname.find("ARCH") != -1: # Arch linux
|
||||
return true
|
||||
|
||||
template rocksType(T) =
|
||||
|
|
Loading…
Reference in New Issue