See https://github.com/StrawberryPerl/Perl-Dist-Strawberry/issues/132 As noted there, the MSYS2 project have patches available that can be adapted if needed: https://github.com/msys2/MSYS2-packages/tree/master/openssl