Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sdks/builds/mac.mk')
-rw-r--r--sdks/builds/mac.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/sdks/builds/mac.mk b/sdks/builds/mac.mk
index bded6b2c22b..9c7a4840e3c 100644
--- a/sdks/builds/mac.mk
+++ b/sdks/builds/mac.mk
@@ -36,8 +36,12 @@ _mac-$(1)_CXXFLAGS= \
_mac-$(1)_CPPFLAGS=
-_mac-$(1)_LDFLAGS= \
- -Wl,-no_weak_imports
+_mac-$(1)_LDFLAGS=
+
+# Xcode 12 and later cause issues with no_weak_imports: https://github.com/mono/mono/issues/19393
+ifeq ($(XCODE_MAJOR_VERSION),$(filter $(XCODE_MAJOR_VERSION), 11 10 9))
+_mac-$(1)_LDFLAGS += -Wl,-no_weak_imports
+endif
_mac-$(1)_CONFIGURE_FLAGS= \
--disable-boehm \