It appears 7629efcc2c3a8a8a7c17b1300cd466ec6c8c1f3f from bitcoin/bitcoin#23603 introduced a regression in build tool flag evaluation.
On macOS system:
- pre-PR23603 master (ae017b81604761b57e22c28913c4ce81bf2e31ce):
0% make -C depends print-darwin_CXXFLAGS
1darwin_CXXFLAGS=-pipe
2% make -C depends print-host_CXXFLAGS
3host_CXXFLAGS=-pipe
- the current master (369978686e156ad34df703f1e60bd90aeaa8f2d6):
0% make -C depends print-darwin_CXXFLAGS
1darwin_CXXFLAGS=-pipe
2% make -C depends print-host_CXXFLAGS
3host_CXXFLAGS=-arch x86_64
It’s obvious a flag being set in depends/hosts/darwin.mk
, i.e., -pipe
, is lost.
With this PR:
0% make -C depends print-darwin_CXXFLAGS
1darwin_CXXFLAGS=-pipe
2% make -C depends print-host_CXXFLAGS
3host_CXXFLAGS=-pipe -arch x86_64