Skip to content

Commit 703f28b

Browse files
fxcoudertgiordano
authored andcommitted
Find DLLs on Windows
1 parent 56d1a2c commit 703f28b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

stdlib/OpenSSL_jll/src/OpenSSL_jll.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl
44

55
baremodule OpenSSL_jll
6-
using Base, Libdl
6+
using Base, Libdl, Base.BinaryPlatforms
77

88
const PATH_list = String[]
99
const LIBPATH_list = String[]
@@ -20,8 +20,13 @@ libssl_handle::Ptr{Cvoid} = C_NULL
2020
libssl_path::String = ""
2121

2222
if Sys.iswindows()
23-
const libcrypto = "libcrypto.dll"
24-
const libssl = "libssl.dll"
23+
if arch(HostPlatform()) == "x86_64"
24+
const libcrypto = "libcrypto-3-x64.dll"
25+
const libssl = "libssl-3-x64.dll"
26+
else
27+
const libcrypto = "libcrypto-3.dll"
28+
const libssl = "libssl-3.dll"
29+
end
2530
elseif Sys.isapple()
2631
const libcrypto = "@rpath/libcrypto.3.dylib"
2732
const libssl = "@rpath/libssl.3.dylib"

0 commit comments

Comments
 (0)