Skip to content

cmake: omit pthread dependency when building with AWS-LC 5.6.0+ and mingw-w64 - #23591

Closed
vszakats wants to merge 7 commits into
curl:masterfrom
vszakats:cm-cpp-clean
Closed

vszakats wants to merge 7 commits into
curl:masterfrom
vszakats:cm-cpp-clean

Conversation

@vszakats

@vszakats vszakats commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

AWS-LC 5.6.0 added support for Windows native threads when using the
mingw-w64 compiler. In such combination, detecting, linking and
depending on the POSIX threads library is unnecessary. Detect this case,
and drop it automatically.

Also, display the version detected:

-- Found AWS-LC version "5.11.0"

Refs:
aws/aws-lc#3405
aws/aws-lc@8cca33b


  • maybe add version detection and automate this. But then it needs
    to be added to autotools too, and the case is so fringe and new, that
    I don't feel spending a lot of time on this rabbit hole for now.
    It's part of a bigger effort on making aws-lc work with curl-for-win,
    and this is a tiny part of that. → added for cmake. For autotools, it's
    a separate effort, I belive pthreads isn't automatically picked up there
    anyway.

@vszakats
vszakats marked this pull request as draft October 24, 2026 15:27
@github-actions github-actions Bot added the build label Oct 24, 2026
@vszakats vszakats changed the title cmake: add CURL_BORINGSSL_WITHOUT_POSIX_THREADS option cmake: add CURL_BORINGSSL_WITHOUT_THREADS_POSIX option Oct 24, 2026
@vszakats vszakats changed the title cmake: add CURL_BORINGSSL_WITHOUT_THREADS_POSIX option cmake: drop the pthread dependency when build with AWS-LC 5.6.0+ and mingw-w64 Oct 24, 2026
@vszakats
vszakats marked this pull request as ready for review October 24, 2026 15:50
@vszakats vszakats added the Windows Windows-specific label Oct 24, 2026
@vszakats vszakats changed the title cmake: drop the pthread dependency when build with AWS-LC 5.6.0+ and mingw-w64 cmake: omit pthread dependency when building with AWS-LC 5.6.0+ and mingw-w64 Oct 24, 2026
@vszakats vszakats closed this in 086d6b0 Oct 24, 2026
@vszakats
vszakats deleted the cm-cpp-clean branch October 24, 2026 19:23
vszakats added a commit that referenced this pull request Oct 24, 2026
AWS-LC supports native Windows threads with mingw-w64 + clang only.

Follow-up to 086d6b0 #23591

Closes #23593
vszakats added a commit that referenced this pull request Oct 29, 2026
Detect the real LibreSSL version number and show it during
configuration. Also check for minimum required version.

(CMake's FindOpenSSL module detect it as constant "2.0.0".)

E.g.:
```
-- Found OpenSSL: /opt/homebrew/opt/libressl/lib/libcrypto.dylib (found version "2.0.0")
[...]
-- Looking for LIBRESSL_VERSION_NUMBER
-- Looking for LIBRESSL_VERSION_NUMBER - found
-- Found LibreSSL version "4.3.2"
```

Ref: 086d6b0 #23591

Closes #23677
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant