]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes/cmake: CMAKE_RANLIB needs to be a filename without arguments
authorRoss Burton <ross.burton@arm.com>
Wed, 24 Sep 2025 12:07:37 +0000 (13:07 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Sep 2025 09:57:11 +0000 (10:57 +0100)
commit598fa6761488bffb09ba0cbe115b562fb95df959
treec440c32b6ddbd82e0a86df23efcc911d56525a96
parent7874ea42bff4950bd0f0abf0ac729bce5ceb702c
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

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cmake.bbclass