Skip to content

Commit

Permalink
[feature] add option to build portable binaries (trezor#685)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin <martin.boehm@1mbsoftware.net>
  • Loading branch information
2 people authored and jagdeep sidhu committed Feb 28, 2023
1 parent 007761e commit 8a9f363
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ command: `make NO_CACHE=true all-bitcoin`.

`TCMALLOC`: RocksDB, the storage engine used by Blockbook, allows to use alternative memory allocators. Use the `TCMALLOC` variable to specify Google's TCMalloc allocator `make TCMALLOC=true all-bitcoin`. To run Blockbook built with TCMalloc, the library must be installed on the target server, for example by `sudo apt-get install google-perftools`.

`PORTABLE`: By default, the RocksDB binaries shipped with Blockbook are optimized for the platform you're compiling on (-march=native or the equivalent). If you want to build a portable binary, use `make PORTABLE=1 all-bitcoin`.

### Naming conventions and versioning

All configuration keys described below are in coin definition file in *configs/coins*.
Expand Down Expand Up @@ -199,7 +201,8 @@ export PATH=$PATH:$GOPATH/bin
```

Install RocksDB: https://github.com/facebook/rocksdb/blob/master/INSTALL.md
and compile the static_lib and tools
and compile the static_lib and tools. Optionally, consider adding `PORTABLE=1` before the
make command to create a portable binary.

```
sudo apt-get update && sudo apt-get install -y \
Expand Down

0 comments on commit 8a9f363

Please sign in to comment.