aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-11-15 11:22:20 +0000
committerfanquake <fanquake@gmail.com>2023-12-05 09:35:32 +0000
commit423949a13b39a193dff8b2758d23d6691d11dbc3 (patch)
treec1c54ae7a60ccf3023b912b360811d339d8d49a9 /depends
parent1c8893bd1c80043ee47e0dd9b63b09bb65d25fa2 (diff)
downloadbitcoin-423949a13b39a193dff8b2758d23d6691d11dbc3.tar.xz
depends: add -platform_version to macOS build flags
```bash -platform_version platform min_version sdk_version This is set to indicate the platform, oldest supported version of that platform that output is to be used on, and the SDK that the output was built against. ```
Diffstat (limited to 'depends')
-rw-r--r--depends/hosts/darwin.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/depends/hosts/darwin.mk b/depends/hosts/darwin.mk
index ecd45540cf..e21af00899 100644
--- a/depends/hosts/darwin.mk
+++ b/depends/hosts/darwin.mk
@@ -71,6 +71,10 @@ $(foreach TOOL,$(cctools_TOOLS),$(eval darwin_$(TOOL) = $$(build_prefix)/bin/$$(
#
# Adds the desired paths from the SDK
#
+# -platform_version
+#
+# Indicate to the linker the platform, the oldest supported version,
+# and the SDK used.
darwin_CC=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
-u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH \
@@ -91,6 +95,7 @@ darwin_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
darwin_CFLAGS=-pipe -std=$(C_STANDARD)
darwin_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
+darwin_LDFLAGS=-Wl,-platform_version,macos,$(OSX_MIN_VERSION),$(OSX_SDK_VERSION)
ifneq ($(LTO),)
darwin_CFLAGS += -flto