]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mold: dont allow on MacOS 18575/head
authorRobert Marko <robimarko@gmail.com>
Wed, 23 Apr 2025 12:18:48 +0000 (14:18 +0200)
committerRobert Marko <robimarko@gmail.com>
Wed, 23 Apr 2025 20:01:06 +0000 (22:01 +0200)
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@gmail.com>
config/Config-build.in

index 710a6489fbce9e96f2ab8b5c59d3dc22fb9a4c3c..0491a9fea16bdaa321ff8fb3e7210f98208dae99 100644 (file)
@@ -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