Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang committed Dec 8, 2023
1 parent a618650 commit f9e8435
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion contrib/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
# Commands to build librocksdb

## Build librocksdb.a

```bash
docker build -t librocksdb:latest --platform=linux/amd64,linux/arm64 .
docker build -t librocksdb:latest .

docker run -it --rm -v $(pwd):/out librocksdb:latest

# inside docker container
cp /rocksdb/librocksdb.a /out
```

## Tar librocksdb.a

```bash
tar -czvf librocksdb_8.5.3_linux_arm64.tar.gz librocksdb.a
```

## Build Mac Universal Static Library

```bash
lipo -create librocksdb_darwin_amd64.a librocksdb_darwin_arm64.a -output librocksdb.a
```

0 comments on commit f9e8435

Please sign in to comment.