<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/stintel/toolchain/mold, branch master</title>
<subtitle>Staging tree of Stijn Tintel</subtitle>
<id>https://git.openwrt.org/openwrt/staging/stintel/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/stintel/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/'/>
<updated>2025-04-23T10:19:26Z</updated>
<entry>
<title>toolchain: mold: add PKG_NAME to Makefile</title>
<updated>2025-04-23T10:19:26Z</updated>
<author>
<name>Weijie Gao</name>
</author>
<published>2025-04-22T18:15:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=b9cb07eced1de81b647608ee89a95d925c7c12a8'/>
<id>urn:sha1:b9cb07eced1de81b647608ee89a95d925c7c12a8</id>
<content type='text'>
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 &lt;hackpascal@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/18567
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: add mold as additional linker</title>
<updated>2023-07-04T18:25:41Z</updated>
<author>
<name>Andre Heider</name>
</author>
<published>2023-01-27T16:53:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/stintel/commit/?id=3cae2db2d1a4edd06e8b4d1585e0ba3f2848eeda'/>
<id>urn:sha1:3cae2db2d1a4edd06e8b4d1585e0ba3f2848eeda</id>
<content type='text'>
Install it as $tripple-ld.mold in order to use -fuse-ld=mold.

Signed-off-by: Andre Heider &lt;a.heider@gmail.com&gt;
</content>
</entry>
</feed>
