]> code.ossystems Code Review - openembedded-core.git/commit
cmake: remove bogus CMAKE_LDFLAGS_FLAGS definition from toolchain file
authorMartin Beeger <martin.beeger@online.de>
Fri, 11 Feb 2022 12:57:14 +0000 (13:57 +0100)
committerSteve Sakoman <steve@sakoman.com>
Sat, 19 Feb 2022 19:59:34 +0000 (09:59 -1000)
commitcf17fc284bcffe1d5b0797c733bcc2eb293a5d8f
tree5b36f2aa144139e3f5fec79ad34f9bf21b042f29
parentb093005d31467d89b00af621f86eb5cac7f845af
cmake: remove bogus CMAKE_LDFLAGS_FLAGS definition from toolchain file

As discussion in [YOCTO #14717] cmake contains a OEToolchainConfig.cmake
file to configure the toolchain correctly in cross-compile build for recipes
using cmake. The variable CMAKE_LDFLAGS_FLAGS is spelled incorrectly, cmake expects
CMAKE_SHARED_LINKER_FLAGS, CMAKE_STATIC_LINKER_FLAGS, CMAKE_EXE_LINKER_FLAGS and
CMAKE_MODULE_LINKER_FLAGS to be set instead. As cmake already correctly initializes
these from environment there is no need to specify the linker flags in the toolchain
file at all. So this just removes the variable, as its value was also set wrong.

Signed-off-by: Martin Beeger <martin.beeger@online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 52e59a5b37f55905ee693a99f9ffc34ed41b4283)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake