Skip to content

Conversation

@ch-f
Copy link

@ch-f ch-f commented Apr 1, 2023

When using OE/Yocto to create a SDK/toolchain, the generated LibwebsocketsTargets.cmake falsely contains the host path (build artifacts) in INTERFACE_LINK_LIBRARIES instead of the actually installed SDK path.

This originates from LIBUV_LIBRARIES and OPENSSL_LIBRARIES because they contain the full host path to the libraries instead of just library names (without the '-l').

There might be more full host path for different LWS features.

For reference, a similar report issue is here.

Maybe this mitigation is better addressed at meta-openembedded?

ch-f added 2 commits April 1, 2023 21:29
When using OE/Yocto to create a SDK/toolchain, the generated
LibwebsocketsTargets.cmake falsely contains the host path (build
artifacts) in INTERFACE_LINK_LIBRARIES instead of the actually installed
SDK path.

This host path originates from OPENSSL_LIBRARIES that gives the full
path to the openssl library at build time.

To avoid propagating full build host specific path to generated
LibwebsocketsTargets.cmake, this patch forces to link with ssl and
crypto instead of a full path.
When using OE/Yocto to create a SDK/toolchain, the generated
LibwebsocketsTargets.cmake falsely contains the host path (build
artifacts) in INTERFACE_LINK_LIBRARIES instead of the actually installed
SDK path.

This host path originates from LIBUV_LIBRARIES that gives the full
path to the openssl library at build time.

To avoid propagating full build host specific path to generated
LibwebsocketsTargets.cmake, this patch is using pkg_check_modules().
@lws-team lws-team force-pushed the main branch 3 times, most recently from a0c73c1 to 7c9d4bc Compare September 9, 2025 14:28
@lws-team lws-team force-pushed the main branch 12 times, most recently from a800d4a to 7f2f518 Compare September 18, 2025 08:03
@lws-team lws-team force-pushed the main branch 3 times, most recently from baf4897 to 0c7fa23 Compare October 1, 2025 14:55
@lws-team lws-team force-pushed the main branch 3 times, most recently from 2b74af4 to 5f77374 Compare October 12, 2025 10:02
@lws-team lws-team force-pushed the main branch 5 times, most recently from a677221 to 0c67054 Compare October 24, 2025 16:36
@lws-team lws-team force-pushed the main branch 2 times, most recently from f5fa440 to 278c671 Compare November 6, 2025 08:28
@lws-team lws-team force-pushed the main branch 2 times, most recently from 580b993 to c837e3f Compare December 29, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant