forked from cosmos/gorocksdb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |