summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marko2025-04-23 12:18:48 +0000
committerRobert Marko2025-11-03 09:21:02 +0000
commit99e62c21c6eaf1bc68e56d279d3aad005f52e113 (patch)
tree1f4e6bca5732625c141afc9c8b54af8fd28198e2
parent984a2197817e7c6e7266ebfa5cde305029d18b1b (diff)
downloadopenwrt-99e62c21c6eaf1bc68e56d279d3aad005f52e113.tar.gz
mold: dont allow on MacOS
Mold does not really work on MacOS, when attempting to use it for example for ubus: mold: get_self_path is not supportedcollect2: error: ld returned 1 exit status Which was introduced by [1] so it seems that MacOS is not supported, so lets make it non selectable when MacOS is the host. [1] https://github.com/rui314/mold/commit/f9a37e9dd43681758bbc5647ba9e596ec4ea9f33 Link: https://github.com/openwrt/openwrt/pull/18575 (cherry picked from commit 3c65dc367827bc06bd45f7eb375c59192deb0a75) Link: https://github.com/openwrt/openwrt/pull/20621 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--config/Config-build.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/Config-build.in b/config/Config-build.in
index a9e968f944..1bcd2a711d 100644
--- a/config/Config-build.in
+++ b/config/Config-build.in
@@ -176,6 +176,7 @@ menu "Global build settings"
config MOLD
depends on (aarch64 || arm || i386 || i686 || m68k || powerpc || powerpc64 || sh4 || x86_64)
depends on !GCC_USE_VERSION_11
+ depends on !HOST_OS_MACOS
def_bool $(shell, ./config/check-hostcxx.sh 10 2 12)
config USE_MOLD