1
0
Fork 0
forked from mirror/openwrt
openwrt/toolchain
Weijie Gao b9cb07eced toolchain: mold: add PKG_NAME to Makefile
In include/host-build.mk, HOST_BUILD_DIR is set by default value:
HOST_BUILD_DIR ?= $(BUILD_DIR_HOST)/$(PKG_NAME)

However the mold package has no PKG_NAME set at all. This means the
HOST_BUILD_DIR is identical to $(BUILD_DIR_HOST).

In the Host/Prepare stage, by default, the $(HOST_BUILD_DIR) will be
deleted at first unconditionally. Since HOST_BUILD_DIR is identical
to $(BUILD_DIR_HOST), the entire build_dir/toolchain-* directory will
be removed and this will cause build failure.

Adding PKG_NAME:=ld.mold can solve this issue.

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18567
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-04-23 12:19:26 +02:00
..
binutils toolchain/binutils: remove old versions 2024-10-12 22:12:39 +02:00
fortify-headers toolchain/fortify-headers: update download url 2024-09-14 13:55:15 +02:00
gcc toolchain: gcc: fix build error with Xcode 16.3 2025-04-16 14:38:34 +02:00
gdb gdb: update to 16.2 2025-04-18 02:10:48 +02:00
glibc toolchain: glibc: Update glibc 2.38 to recent HEAD 2024-05-04 20:03:47 +02:00
kernel-headers toolchain: assign PKG_CPE_ID 2023-09-19 20:22:59 +02:00
mold toolchain: mold: add PKG_NAME to Makefile 2025-04-23 12:19:26 +02:00
musl toolchain/musl: add support for renameat2() 2024-06-13 14:16:32 +02:00
nasm toolchain/nasm: update to 2.16.03 2024-09-22 19:06:22 +02:00
wrapper toolchain/wrapper: fill and reference info.mk in staging_dir ext toolchain 2024-04-21 17:59:17 +02:00
build_version toolchain: add a version that can be bumped to force toolchain/target rebuild 2021-11-16 22:02:45 +01:00
Config.in build: conditionally build llvm bpf toolchain by default 2025-02-07 11:16:08 +01:00
info.mk uClibc cleanup: - use full version string (0.9.30.1), instead of base (0.9.30) + extra (.1) - remove support for 0.9.28 and snapshots (building from SVN to be added later) 2009-04-24 02:07:24 +00:00
Makefile toolchain: add mold as additional linker 2023-07-04 20:25:41 +02:00