Files
poky/meta/recipes-devtools
Bernhard Rosenkränzer bd156c4618 cmake-native: Fix host tool contamination
[v2 hopefully fixes the From: mangling by the ML, no functional changes]

Trying to build cmake-native on a host system where curl was built with cmake
(resulting in CURLConfig.cmake and friends, which do not use the same naming
schemes expected by cmake-native's build process, being installed to a system
wide cmake directory like /usr/lib64/cmake/CURL) results in undefined
references to all libcurl symbols.

The problem is that cmake-native sees and uses the system wide
/usr/lib64/cmake/CURL/CURLConfig.cmake, which defines CURL::libcurl and
CURL::curl as opposed to setting ${CURL_LIBRARIES} as expected by
cmake-native.

find_package(CURL) (cmake-native's CMakeLists.txt, line 478) succeeds, but
incorrectly uses the system wide CURLConfig.cmake, resulting
CMAKE_CURL_LIBRARIES to be set to an empty string (cmake-native's
CMakeLists.txt, line 484), causing the cmake-native build to miss -lcurl.

The simplest fix is to let cmake know the right value for
CURL_LIBRARIES. Making it -lcurl should always work with libcurl-native
in recipe-sysroot-native.

[YOCTO #14951]

(From OE-Core rev: 2659c735a464c956b4fca0894a5aed27a0fe7e37)

Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-10-29 16:28:35 +01:00
..
2022-10-26 12:28:39 +01:00
2021-11-25 21:55:10 +00:00
2022-07-01 11:31:42 +01:00
2022-09-26 22:04:35 +01:00
2022-07-12 23:56:10 +01:00
2022-04-20 13:13:59 +01:00
2022-09-17 07:47:07 +01:00
2022-05-13 17:56:29 +01:00
2022-10-26 12:28:40 +01:00
2021-11-03 10:12:42 +00:00
2022-10-28 09:44:52 +01:00
2022-08-16 14:57:58 +01:00
2022-09-17 07:47:08 +01:00
2022-09-17 07:47:08 +01:00
2022-03-23 12:13:49 +00:00
2022-07-18 11:47:37 +01:00
2022-03-11 06:56:01 +00:00
2022-10-26 12:28:38 +01:00
2022-07-23 13:55:26 +01:00
2022-10-26 12:28:38 +01:00
2021-08-02 15:44:10 +01:00
2022-09-17 07:47:07 +01:00
2022-09-17 07:47:07 +01:00
2021-08-02 15:44:10 +01:00
2022-08-25 11:08:07 +01:00
2022-10-26 12:28:38 +01:00
2022-09-02 15:58:26 +01:00
2022-08-21 22:51:42 +01:00
2022-04-26 18:25:08 +01:00
2021-12-08 20:22:10 +00:00
2022-09-08 14:59:39 +01:00
2022-09-08 14:59:39 +01:00