[openwrt/openwrt] mold: dont allow on MacOS
LEDE Commits
lede-commits at lists.infradead.org
Wed Apr 23 13:01:13 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/3c65dc367827bc06bd45f7eb375c59192deb0a75
commit 3c65dc367827bc06bd45f7eb375c59192deb0a75
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Wed Apr 23 14:18:48 2025 +0200
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
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
config/Config-build.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/config/Config-build.in b/config/Config-build.in
index 710a6489fb..0491a9fea1 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 || loongarch64 || m68k || powerpc || powerpc64 || riscv64 || 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
More information about the lede-commits
mailing list