add CGO flags to readme

This commit is contained in:
Jeffrey Picard 2022-09-01 09:30:06 +00:00
parent ffe15f060a
commit 36aa8503fa

View file

@ -72,6 +72,8 @@ tar xfzv rocksdb-6.29.5.tar.gz
cd rocksdb-6.29.5
make static_lib
sudo make install
export CGO_CFLAGS="-I/usr/local/lib"
export CGO_LDFLAGS="-L/usr/local/lib -lrocksdb -lstdc++ -lm -lz -lsnappy -llz4 -lzstd -lbz2"
```
```