From: Andre Heider Date: Fri, 27 Jan 2023 17:22:43 +0000 (+0100) Subject: treewide: opt-out of tree-wide mold usage X-Git-Tag: v24.10.0-rc1~4653 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=42ef375cb658d2de0d44a8b1da4df939341b6021;p=openwrt%2Fopenwrt.git treewide: opt-out of tree-wide mold usage These use linker scripts, which mold doesn't support. Signed-off-by: Andre Heider --- diff --git a/include/package.mk b/include/package.mk index c391d320aa..1762080b9b 100644 --- a/include/package.mk +++ b/include/package.mk @@ -24,7 +24,7 @@ PKG_JOBS?=$(if $(PKG_BUILD_PARALLEL),$(MAKE_J),-j1) endif PKG_BUILD_FLAGS?= -__unknown_flags=$(filter-out no-iremap no-mips16 gc-sections no-gc-sections lto no-lto,$(PKG_BUILD_FLAGS)) +__unknown_flags=$(filter-out no-iremap no-mips16 gc-sections no-gc-sections lto no-lto no-mold,$(PKG_BUILD_FLAGS)) ifneq ($(__unknown_flags),) $(error unknown PKG_BUILD_FLAGS: $(__unknown_flags)) endif diff --git a/package/boot/grub2/Makefile b/package/boot/grub2/Makefile index 865feee9ad..44dafe1ef1 100644 --- a/package/boot/grub2/Makefile +++ b/package/boot/grub2/Makefile @@ -25,7 +25,7 @@ ifneq ($(BUILD_VARIANT),none) endif PKG_FLAGS:=nonshared -PKG_BUILD_FLAGS:=no-lto +PKG_BUILD_FLAGS:=no-lto no-mold include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk diff --git a/package/kernel/lantiq/ltq-ifxos/Makefile b/package/kernel/lantiq/ltq-ifxos/Makefile index d941a9d56f..97f7ca78ce 100644 --- a/package/kernel/lantiq/ltq-ifxos/Makefile +++ b/package/kernel/lantiq/ltq-ifxos/Makefile @@ -23,6 +23,7 @@ PKG_LICENSE_FILES:=LICENSE PKG_EXTMOD_SUBDIRS:=src PKG_FIXUP:=autoreconf +PKG_BUILD_FLAGS:=no-mold include $(INCLUDE_DIR)/package.mk diff --git a/package/kernel/lantiq/ltq-vdsl-vr11-mei/Makefile b/package/kernel/lantiq/ltq-vdsl-vr11-mei/Makefile index f2dcf8db84..7b8a948179 100644 --- a/package/kernel/lantiq/ltq-vdsl-vr11-mei/Makefile +++ b/package/kernel/lantiq/ltq-vdsl-vr11-mei/Makefile @@ -25,6 +25,7 @@ PKG_EXTMOD_SUBDIRS:=src PKG_FIXUP:=autoreconf PKG_FLAGS:=nonshared +PKG_BUILD_FLAGS:=no-mold include $(INCLUDE_DIR)/package.mk diff --git a/package/kernel/lantiq/ltq-vdsl-vr11/Makefile b/package/kernel/lantiq/ltq-vdsl-vr11/Makefile index 8284cba9a7..11f96d744a 100644 --- a/package/kernel/lantiq/ltq-vdsl-vr11/Makefile +++ b/package/kernel/lantiq/ltq-vdsl-vr11/Makefile @@ -23,6 +23,7 @@ PKG_LICENSE:=GPL-2.0 BSD-2-Clause PKG_LICENSE_FILES:=LICENSE PKG_FIXUP:=autoreconf +PKG_BUILD_FLAGS:=no-mold include $(INCLUDE_DIR)/package.mk