From 6c517e249a86a5779b9b45983e6138ba7d3b3d34 Mon Sep 17 00:00:00 2001 From: code4lala Date: Thu, 12 Jan 2023 15:32:18 +0800 Subject: [PATCH] link ws2_32 for libcrypto_shared on mingw Signed-off-by: code4lala Change-Id: Ie2857a7388c4b7e17d84dd48ec150530983db773 --- BUILD.gn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index e612661ca6..25c15ec12a 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -942,6 +942,10 @@ if (is_mingw || is_mac) { } ohos_shared_library("libcrypto_shared") { + if (is_mingw) { + lib_dirs = [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib" ] + libs = [ "ws2_32" ] + } deps = [ ":crypto_source" ] output_name = "libcrypto_openssl" subsystem_name = "security" -- GitLab