Skip to content

build: Link time garbage collection

Closes #18579 (closed).

Adds the linker flags required to turn on link time garbage collection to the Linux gitian descriptors and Guix build. After some experimentation I'm not convinced this is something that we should do for Windows builds at this stage.

Size comparison for a gitian build of master (df303ceb) vs this PR (8c31ef9ec68549c4105e8115f74f435c71b3901c):

binary master (df303ceb) PR (8c31ef9ec68549c4105e8115f74f435c71b3901c) saving
bitcoind 10525336 9775672 7%
bitcoin-cli 2055800 1113624 45%
bitcoin-qt 31896456 31114024 2.5%
bitcoin-tx 2376152 1372536 42%
bitcoin-wallet 5899168 3199808 45%
test_bitcoin 17063328 15354784 10%

Merge request reports

Loading