Skip to content

FindOpenSSL: Search for -pthread flag

Because -pthread doesn't begin with -l, it doesn't show up in the pkgconfig LIBRARIES variable, causing FindOpenSSL to not add the Threads::Threads dependency. Explicitly search LDFLAGS_EXTRA for -pthread and add the dependency if it's found.

Fixes: #24532 (closed), !8230 (merged), !7986 (merged)
Backport: release

Edited by Brad King

Merge request reports