Closes #18579.
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 (df303ceb650521dc7b1ba91e0eea383c387a5860) vs this PR (8c31ef9ec68549c4105e8115f74f435c71b3901c):
binary | master (df303ceb650521dc7b1ba91e0eea383c387a5860) | 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% |