rpm: Always use gcc compiler

clang can build it ok but the openmp directives
get emitted with full paths into binaries [1] until
thats fixed in clang/openmp stick to gcc

[1] https://github.com/llvm/llvm-project/issues/82541

(From OE-Core rev: 89d2401ab0484478aa582fbdda21fd1d287605c4)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj 2025-05-20 23:19:59 -07:00 committed by Richard Purdie
parent 768cde81b1
commit 2dfdcf7891

View File

@ -62,6 +62,10 @@ OECMAKE_GENERATOR = "Unix Makefiles"
BBCLASSEXTEND = "native nativesdk"
# Clang results in a reproducibility issue
# https://github.com/llvm/llvm-project/issues/82541
TOOLCHAIN = "gcc"
PACKAGECONFIG ??= "archive"
PACKAGECONFIG[plugins] = "-DENABLE_PLUGINS=ON,-DENABLE_PLUGINS=OFF"