Here is a demo branch.
It is based on the master branch @ c8e3978114716bb8fb10695b9d187652f3ab4926 with the only diff applied on the top of it:
0--- a/depends/hosts/darwin.mk
1+++ b/depends/hosts/darwin.mk
2@@ -95,7 +95,7 @@ darwin_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
3
4 darwin_CFLAGS=-pipe -std=$(C_STANDARD) -mmacosx-version-min=$(OSX_MIN_VERSION)
5 darwin_CXXFLAGS=-pipe -std=$(CXX_STANDARD) -mmacosx-version-min=$(OSX_MIN_VERSION)
6-darwin_LDFLAGS=-Wl,-platform_version,macos,$(OSX_MIN_VERSION),$(OSX_SDK_VERSION)
7+# darwin_LDFLAGS=-Wl,-platform_version,macos,$(OSX_MIN_VERSION),$(OSX_SDK_VERSION)
8
9 ifneq ($(build_os),darwin)
10 darwin_CFLAGS += -mlinker-version=$(LD64_VERSION)
One might expect that not passing the -Wl,-platform_version,macos
flag to a linker will cause the check_MACHO_sdk
in the symbol-check.py
to fail.
That’s true on Ubuntu 22.04 LTS:
0...
1Running symbol and dynamic library checks...
2bitcoind: failed SDK
3bitcoin-cli: failed SDK
4bitcoin-tx: failed SDK
5bitcoin-wallet: failed SDK
6bitcoin-util: failed SDK
7test/test_bitcoin: failed SDK
8qt/bitcoin-qt: failed SDK
9make: *** [Makefile:23004: check-symbols] Error 1
10make: Leaving directory '/distsrc-base/distsrc-d9aae66b3efa-x86_64-apple-darwin/src'
But all tests pass on Ubuntu 23.10:
0x86_64
1ce93a8c05df4d31fa1e33862ba63318a7350fb175a5f25eae771e24447fc3cda guix-build-d9aae66b3efa/output/dist-archive/bitcoin-d9aae66b3efa.tar.gz
2d7d821344fde3e5cedf937846f57cfd298e1b5ce8956d1e5c04e59bde2b23c8d guix-build-d9aae66b3efa/output/x86_64-apple-darwin/SHA256SUMS.part
31a9288baaa43a2ad0bfd339d41d0616d879bdd82323e1b17cddb32453f2b3733 guix-build-d9aae66b3efa/output/x86_64-apple-darwin/bitcoin-d9aae66b3efa-x86_64-apple-darwin-unsigned.tar.gz
45b49447f9222161d48b6d435e5ff064132727e8f90f90a239738a29a3c0b9111 guix-build-d9aae66b3efa/output/x86_64-apple-darwin/bitcoin-d9aae66b3efa-x86_64-apple-darwin-unsigned.zip
5af6c0a3db2cc0e046ff3c4c4f4fb3fce705e8b382aadb3b6cfbb153da55e60d3 guix-build-d9aae66b3efa/output/x86_64-apple-darwin/bitcoin-d9aae66b3efa-x86_64-apple-darwin.tar.gz