summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-09-24 13:07:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-25 11:09:04 +0100
commitfbef81c83367c8ba1d3bf57547ce52758cc87ce6 (patch)
tree5c9845596d3b254c8820ab05d32430c6f75641e3
parent81569a68e960a62a105d59c609a8b25302812874 (diff)
downloadpoky-fbef81c83367c8ba1d3bf57547ce52758cc87ce6.tar.gz
classes/cmake: CMAKE_RANLIB needs to be a filename without arguments
CMAKE_RANLIB is the path to the binary without any arguments. However, gcc-native.bbclass sets BUILD_RANLIB to "ranlib -D" which means that CMake looks for a binary called "ranlib;-D". This is expected behaviour upstream[1] and as there's no variable for "ranlib flags", we should just set CMAKE_RANLIB to the first element of the list. [1] https://gitlab.kitware.com/cmake/cmake/-/issues/23554 (From OE-Core rev: 598fa6761488bffb09ba0cbe115b562fb95df959) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/cmake.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/cmake.bbclass b/meta/classes-recipe/cmake.bbclass
index 1488d744d4..0dc8ea143b 100644
--- a/meta/classes-recipe/cmake.bbclass
+++ b/meta/classes-recipe/cmake.bbclass
@@ -56,7 +56,7 @@ OECMAKE_NATIVE_C_COMPILER_LAUNCHER ?= "${@oecmake_map_compiler('BUILD_CC', d)[1]
56OECMAKE_NATIVE_CXX_COMPILER ?= "${@oecmake_map_compiler('BUILD_CXX', d)[0]}" 56OECMAKE_NATIVE_CXX_COMPILER ?= "${@oecmake_map_compiler('BUILD_CXX', d)[0]}"
57OECMAKE_NATIVE_CXX_COMPILER_LAUNCHER ?= "${@oecmake_map_compiler('BUILD_CXX', d)[1]}" 57OECMAKE_NATIVE_CXX_COMPILER_LAUNCHER ?= "${@oecmake_map_compiler('BUILD_CXX', d)[1]}"
58OECMAKE_NATIVE_AR ?= "${BUILD_AR}" 58OECMAKE_NATIVE_AR ?= "${BUILD_AR}"
59OECMAKE_NATIVE_RANLIB ?= "${BUILD_RANLIB}" 59OECMAKE_NATIVE_RANLIB ?= "${@d.getVar('BUILD_RANLIB').split()[0]}"
60OECMAKE_NATIVE_NM ?= "${BUILD_NM}" 60OECMAKE_NATIVE_NM ?= "${BUILD_NM}"
61 61
62# Native compiler flags 62# Native compiler flags