Skip to content

Let a library provide mbedTLS for static builds #161

Closed

Description

@dimensionscape

A library that bundles mbedTLS, such as Lime 8.4.0 (mbedTLS 3.6 for curl), puts a second copy into a static app next to libhxcpp's. In static builds the library should be able to offer its copy, so sys.ssl is built on it and the app links one mbedTLS.

Design: the library sets the define hxcpp_mbedtls_provider to a provider file. When the build is static and the provider declares mbedTLS 3, libhxcpp compiles SSL.cpp with the provider's flags, leaves its own mbedtls group out, and skips its threading setup. Upstream hxcpp ignores the define. Spec in docs/MbedTLSProvider.md.

Activity

  1. added 2 commits that reference this issue on Oct 15, 2026
    807846e
    2c8bccd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions