From f9e8435ce9d31fca2a43bc5d596848c5178aadc4 Mon Sep 17 00:00:00 2001 From: Kevin Yang <5478483+k-yang@users.noreply.github.com> Date: Thu, 7 Dec 2023 18:06:29 -0600 Subject: [PATCH] Update README.md --- contrib/README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/contrib/README.md b/contrib/README.md index c39b9b7..54fb70b 100644 --- a/contrib/README.md +++ b/contrib/README.md @@ -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 +```