]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
libclc: do native build of prepare_builtins in a fresh environment
authorRoss Burton <ross.burton@arm.com>
Fri, 1 Aug 2025 12:55:18 +0000 (13:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Aug 2025 09:43:42 +0000 (10:43 +0100)
commit0013f501d1de01606b812d930ef6ca842633f551
tree424fc8e28e4e66753332c7f4e89dd906405c17d5
parentaa5f60d1fcb716a2b2174dffcaf35442bff1f1fb
libclc: do native build of prepare_builtins in a fresh environment

The environment has variables like LDFLAGS set which CMake will try and
use, so until our cmake class is comprehensive enough to nuke those in
the native toolchain file (if that is possible) do a build inside a
clean (apart from PATH) environment to avoid cross-contamination.

As noticed by Khem Raj, this can fail in nativesdk builds as the target
flags will be passed to the native link resulting in failures like:

  Requesting program interpreter: /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-yoesdk-linux/lib/ld-linux-x86-64.so.2

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/clang/libclc_git.bb