tecbot / gorocksdb

gorocksdb is a Go wrapper for RocksDB

Home Page:http://rocksdb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why force linking compression library through LDFLAGS?

Stumble opened this issue · comments

// #cgo LDFLAGS: -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -ldl

// #cgo LDFLAGS: -l:librocksdb.a -l:libstdc++.a -l:libz.a -l:libbz2.a -l:libsnappy.a -lm

If rocksdb is compiled without the above compression library, link will fail.

@Stumble should be save to remove them. Could you provide a PR?

Since PR is merged, this is good to close.