laanwj
685b7a7a1b
Merge bitcoin/bitcoin#23611 : build: add LTO
option to depends
...
094772656d71b3f5022ae292094e878da035de9e build: support LTO in depends (fanquake)
Pull request description:
This adds an `LTO` option to depends, i.e `make -C depends LTO=1`, which passes `-flto` when building packages (not currently qt), and automatically configures with `--enable-lto` when doing a build using a `CONFIG_SITE`.
The following tables comapres the size (in bytes) of the stripped `x86_64` Linux binaries produced with master and this PR (full depends build):
| Binary | stripped master | stripped LTO=1 | saving |
| -------- | ----------------: | -------------: | --------: |
| bitcoin-cli | 1178632 | 469872 | 60% |
| bitcoin-tx | 2710584 | 1866504 | 31% |
| bitcoin-util | 952880 | 240104 | 74% |
| bitcoin-wallet | 7992888 | 5365984 | 32% |
| bitcoind | 13421336 | 11868592 | 12% |
| bitcoin-qt | 37680496 | 31640976 | 16% |
ACKs for top commit:
laanwj:
Tested ACK 094772656d71b3f5022ae292094e878da035de9e
Tree-SHA512: 6b8483ea490e57a153105ad8c38b25fb1af5d55b1af22db398c7c2573612aaf71b4d2b4cf09c18fd6331b1358dba01641eeaa03e5018a925392e1937118d984a
2024-09-27 12:52:15 -05:00
fanquake
e552c49538
Merge bitcoin/bitcoin#24604 : build: fix copypasta in OpenBSD C{XX} flags
...
28f17c1a6de7b50482d8f55fe03698126862e8eb build: fix copypasta in OpenBSD C{XX} flags (fanquake)
Pull request description:
Introduced in #23998 .
ACKs for top commit:
hebasto:
ACK 28f17c1a6de7b50482d8f55fe03698126862e8eb, I have reviewed the code and it looks OK, not tested on OpenBSD though.
Tree-SHA512: d905161534075f518c8924d3c42cca7ff8d4898e559f1daa9bd03dac95b109b2c3e76790fb8bc65b9e45e8a59566825afbf4dc3734ad74617dfdf797430e486b
2024-01-01 17:48:19 -06:00