You have to link against libdl on Linux

Otherwise there will be linking error because rocksdb is importing ```dlclose```, ```dlopen``` and other functions from libdl.so.
pull/530/head
CryptoManiac 2020-06-17 09:18:07 +03:00 committed by Martin
parent da1c0d762e
commit c0c2dc4151
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ Setup variables for gorocksdb: https://github.com/tecbot/gorocksdb
```
export CGO_CFLAGS="-I/path/to/rocksdb/include"
export CGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4"
export CGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -ldl -lbz2 -lsnappy -llz4"
```
Install ZeroMQ: https://github.com/zeromq/libzmq