I'm hoping that someone can tell me how to get the same binary that we see on bitcoincore.org/bitcoin.org.
I tried using Ubuntu 20.04
git clone https://github.com/bitcoin/bitcoin git checkout v0.20.1 sudo apt-get update sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 -y sudo apt-get install libevent-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev -y ./autogen.sh ./configure --disable-wallet make make install
Extra details (git commit I'm going off of)
git log commit 7ff64311bee570874c4f0dfa18f518552188df08 (HEAD -> 20.1, tag: v0.20.1) Author: Wladimir J. van der Laan <firstname.lastname@example.org> Date: Fri Jul 31 14:01:56 2020 +0200
bitcoincore.org link I'm going off of: https://bitcoincore.org/bin/bitcoin-core-0.20.1/bitcoin-0.20.1-x86_64-linux-gnu.tar.gz
I was hoping that someone could tell me how to properly configure/setup my environment to produce the same binary that we see packaged nicely in the tarball on these websites. The binary files aren't even close in size…
from tarball bitcoind size: 10312344 (10 MB)
from building from scratch bitcoind size: 192814984 (192 MB)
How do I make the super sleek and sexy 10 MB version?
CXXFLAGS="-O2 -g0"for example at configure time), or you can strip them after compilation (
strip bitcoind). That will result in a similarly small file, but it won't give you a binary that's identical to the release binary. To do so, follow the gitian-based process like Murch suggests below.