Fixes errors like fatal error: 'unistd.h' file not found
when building depends on macOS.
Replaces #14352 (which doesn’t work on Catalina).
9@@ -10,8 +10,8 @@ build_darwin_SHA256SUM=shasum -a 256
10 build_darwin_DOWNLOAD=curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
11
12 #darwin host on darwin builder. overrides darwin host preferences.
13-darwin_CC=$(shell xcrun -f clang) -mmacosx-version-min=$(OSX_MIN_VERSION)
14-darwin_CXX:=$(shell xcrun -f clang++) -mmacosx-version-min=$(OSX_MIN_VERSION) -stdlib=libc++
15+darwin_CC=$(shell xcrun -f clang) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(shell xcrun --show-sdk-path)
16+darwin_CXX:=$(shell xcrun -f clang++) -mmacosx-version-min=$(OSX_MIN_VERSION) -stdlib=libc++ --sysroot $(shell xcrun --show-sdk-path)
shell
?
Is it really necessary?
The command should be also executed without shell
(at least on my linux + zsh)
Gitian builds for commit 561a7d30478b82f5d46dcf0f16e864a9608004f4 (master):
a62ba1734bdaea18eaf90325e0376c37...
bitcoin-0.19.99-aarch64-linux-gnu-debug.tar.gz5807e8f6cac30da00facbf1c32a81a04...
bitcoin-0.19.99-aarch64-linux-gnu.tar.gzad70111af83dea5fba21c7dbb25cd5d7...
bitcoin-0.19.99-arm-linux-gnueabihf-debug.tar.gzecf767fe49a9dd2613c66e96a5d39cf8...
bitcoin-0.19.99-arm-linux-gnueabihf.tar.gz4fb9dae9ea73e0beef8b7438ca023100...
bitcoin-0.19.99-i686-pc-linux-gnu-debug.tar.gzb840334ba82ca8e32d51122b7e689e03...
bitcoin-0.19.99-i686-pc-linux-gnu.tar.gzd94dfaed7ab1f7ed98b93971b3c6f87a...
bitcoin-0.19.99-osx-unsigned.dmg9f2cc133af767e0dcfbf03aaf851e1f1...
bitcoin-0.19.99-osx64.tar.gz41aede8449bde09955d9c2fe898dd66a...
bitcoin-0.19.99-riscv64-linux-gnu-debug.tar.gz6e41f8d783078bd046aa0a292ae946d4...
bitcoin-0.19.99-riscv64-linux-gnu.tar.gzd7345d43be3829198a24b6ec11f96a99...
bitcoin-0.19.99-win64-debug.zip3423a510f191276dc5897d03a89c329d...
bitcoin-0.19.99-win64-setup-unsigned.exe67188115497152a43ae4f682a45863e4...
bitcoin-0.19.99-win64.zipe2efce6f5a36b5bbb8bc44067973660e...
bitcoin-0.19.99-x86_64-linux-gnu-debug.tar.gzed3cefdc62183b36cd9c20b76ad31670...
bitcoin-0.19.99-x86_64-linux-gnu.tar.gzf6e070709d0ed2e29e99e53160cfb4e1...
bitcoin-0.19.99.tar.gz6f6eb36cb536f26ed5e8579f0143edeb...
bitcoin-core-linux-0.20-res.ymle2ce2506c84154b10e7a59fe94a750ce...
bitcoin-core-osx-0.20-res.yml9439ccc2ce38aad19947d15fc72b7d8c...
bitcoin-core-win-0.20-res.yml6b4d4dc79fa61f43073dfc7827639d0f...
linux-build.logc56f11d1a7111be698167d4f1d3de39f...
osx-build.logdbaf4c854ec520a2601a8c169b8e4962...
win-build.logGitian builds for commit 37adf88b0c4b644d7feac57429dca4f4791f2fd1 (master and this pull):
4ddc0ab55a22c204a006f10c79bc28c0...
bitcoin-0.19.99-aarch64-linux-gnu-debug.tar.gz8d7325d7ae06eaf26ef61fa6aa0b05af...
bitcoin-0.19.99-aarch64-linux-gnu.tar.gz0ae72a8230bb925527b33941d9a6af5f...
bitcoin-0.19.99-arm-linux-gnueabihf-debug.tar.gz799ca3d8b3e5d069b0497dd7dfec8a6e...
bitcoin-0.19.99-arm-linux-gnueabihf.tar.gz9823584f640a5a8ccd94a0ee0313ed72...
bitcoin-0.19.99-i686-pc-linux-gnu-debug.tar.gzddfc84692400879bfcddb56675fd6719...
bitcoin-0.19.99-i686-pc-linux-gnu.tar.gz7627c1042a770159cd3c8d55b3b93592...
bitcoin-0.19.99-osx-unsigned.dmg6844832828005c07e10a7debb213e9e5...
bitcoin-0.19.99-osx64.tar.gzc9bfcff06274e21470942e470ff7b8ce...
bitcoin-0.19.99-riscv64-linux-gnu-debug.tar.gzd1c7d6e91b3121d9ddd4674691b2bb2f...
bitcoin-0.19.99-riscv64-linux-gnu.tar.gze6f957a9ac462d37adc1f181a2a30c94...
bitcoin-0.19.99-win64-debug.zip65c43645f46addb6e9c2c6590cdf7aed...
bitcoin-0.19.99-win64-setup-unsigned.exe46ed43d13831203a832f5372f9a9e1a1...
bitcoin-0.19.99-win64.zipffbc238dfe1af56284e59014c3ce41f1...
bitcoin-0.19.99-x86_64-linux-gnu-debug.tar.gz5003a9777aa6ebfabb90702c60ef2b99...
bitcoin-0.19.99-x86_64-linux-gnu.tar.gz86c2fa759916d7b22d62908591a87c90...
bitcoin-0.19.99.tar.gz4d336f9f28f7b17c3d827535b26f2a09...
bitcoin-core-linux-0.20-res.yml6fa04e8a1dcb323e7ec49e76e511fa8d...
bitcoin-core-linux-0.20-res.yml.diffd68bc27c11e8c4cdd73e6f4125379427...
bitcoin-core-osx-0.20-res.ymld1b30697449c3295af538d46daca03f3...
bitcoin-core-osx-0.20-res.yml.diff2b1128f46aeadbec58cfed54f0d6ee6c...
bitcoin-core-win-0.20-res.yml28d6006a4d0aee148188e5a243ce16b4...
bitcoin-core-win-0.20-res.yml.diffe2caf3c9815ef4c001e8362aeeb8c75e...
linux-build.log93782fcc3841a2de663a0339ffdfd28b...
linux-build.log.diff47a8e43fad8f5f5dd100b44b0639e8d1...
osx-build.log67a933d1f03e4671768a2085d2e98f8e...
osx-build.log.diff9fc8cf099384d49e5552e03276b94eab...
win-build.loga978b9c876f8ec6c1bbfc5338b9d9eab...
win-build.log.diffbitcoin-0.19.99-osx64.tar.gz
on macOS 10.15