]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
clang-cross: Create <cross>-clang binary copy instead of symlink
authorKhem Raj <raj.khem@gmail.com>
Thu, 7 Aug 2025 00:44:25 +0000 (17:44 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Aug 2025 17:03:13 +0000 (18:03 +0100)
commit3b0128fe6421e64674fd250e0b4e6afb1c8ce436
treebb3387a10239390a3f51843f62205a90aa917cc3
parent88e1214e01c48b174aa9516c60e15a0dfb69e10f
clang-cross: Create <cross>-clang binary copy instead of symlink

With clang cleanup in [1] we ended up removing this logic, which
is still required.

This ensures that search path for subsequent tools e.g. linker
assembler are searched in the same dir where <cross>-clang is
installed. If its a symlink to ../clang then the reference
installation dir is ../ and all cross-tools are not there
so clang will fail to find assembler/linker from cross staging
area and use /usr/bin/ld or /usr/bin/as  which we do not want

[1] https://git.openembedded.org/openembedded-core/commit/meta/recipes-devtools/clang/clang-cross_git.bb?id=5d96ed55acf7b9a908241222097ad809355de7cf

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-devtools/clang/clang-cross_git.bb