Skip to content

[openssl-windows] [ffmpeg] [xeus] wrap FindOpenSSL to ensure crypt32 and ws2_32 are added to libraries to be statically linked#14309

Closed
mcmtroffaes wants to merge 3 commits intomicrosoft:masterfrom
mcmtroffaes:feature/openssl-linking-fix
Closed

[openssl-windows] [ffmpeg] [xeus] wrap FindOpenSSL to ensure crypt32 and ws2_32 are added to libraries to be statically linked#14309
mcmtroffaes wants to merge 3 commits intomicrosoft:masterfrom
mcmtroffaes:feature/openssl-linking-fix

Conversation

@mcmtroffaes
Copy link
Contributor

  • What does your PR fix? Fixes static linking of OpenSSL on windows. This issue is reported upstream here https://gitlab.kitware.com/cmake/cmake/-/issues/19263 with patch here https://cmake.org/pipermail/cmake-developers/2016-August/029210.html submitted by @Neumann-A back in 2016. Also updates ffmpeg to use OPENSSL_LIBRARIES (coincidentally this also fixes ffmpeg[openssl] linking on x64-linux, and simplifies the FindFFMPEG script). Finally, removes static linking patch on xeus since the wrapper now takes care of it. Both ffmpeg[openssl] and xeus tested on x64-windows-static. The intention is that once upstream cmake fixes FindOpenSSL, the wrapper can be dropped.

  • Which triplets are supported/not supported? Have you updated the CI baseline? No changes.

  • Does your PR follow the maintainer guide? To the best of my knowledge, yes.

@Neumann-A
Copy link
Contributor

Neumann-A commented Oct 30, 2020

submitted by @Neumann-A back in 2016.

that is not me

wrapper is also contained in #14308

@mcmtroffaes mcmtroffaes marked this pull request as draft October 30, 2020 15:10
@mcmtroffaes
Copy link
Contributor Author

Yes, I literally just noticed. I'll wait until your PR is merged and then see what's still needed here.

And apologies for confusing identities!

@JackBoosY JackBoosY added category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist depends:different-pr This PR or Issue depends on a PR which has been filed labels Nov 2, 2020
@mcmtroffaes
Copy link
Contributor Author

Now #14308 has been merged, I'll close this and post separate pull requests for xeus and ffmpeg since these parts are completely independent.

@mcmtroffaes mcmtroffaes closed this Nov 4, 2020
@mcmtroffaes mcmtroffaes deleted the feature/openssl-linking-fix branch November 4, 2020 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist depends:different-pr This PR or Issue depends on a PR which has been filed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants