Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OE/Yocto SDK mitigation #2861

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

OE/Yocto SDK mitigation #2861

wants to merge 2 commits into from

Commits on Apr 1, 2023

  1. tls: cmake: avoid using full host path for SSL lib

    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.
    ch-f authored and Christoph Fritz committed Apr 1, 2023
    Configuration menu
    Copy the full SHA
    507b4f5 View commit details
    Browse the repository at this point in the history
  2. uv: cmake: avoid using full host 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().
    ch-f authored and Christoph Fritz committed Apr 1, 2023
    Configuration menu
    Copy the full SHA
    eac4bfd View commit details
    Browse the repository at this point in the history