From fea218b17ed7a9c3fc287465ccc45de20446e7e9 Mon Sep 17 00:00:00 2001 From: peizhe Date: Fri, 5 May 2023 17:50:04 +0800 Subject: [PATCH] =?UTF-8?q?openssl=E4=BE=9D=E8=B5=96=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E8=87=B33.0=EF=BC=8C=E7=9B=B8=E5=85=B3=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: peizhe --- openssl-sys/BUILD.gn | 1 + openssl/BUILD.gn | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openssl-sys/BUILD.gn b/openssl-sys/BUILD.gn index 8821bcf..7451f28 100644 --- a/openssl-sys/BUILD.gn +++ b/openssl-sys/BUILD.gn @@ -38,6 +38,7 @@ ohos_cargo_crate("lib") { "--cfg=osslconf=\"OPENSSL_NO_CAST\"", "--cfg=osslconf=\"OPENSSL_NO_RMD160\"", "--cfg=osslconf=\"OPENSSL_NO_SSL3_METHOD\"", + "--cfg=ossl300", "--cfg=ossl101", "--cfg=ossl102", "--cfg=ossl102f", diff --git a/openssl/BUILD.gn b/openssl/BUILD.gn index 70e33ee..684ee86 100644 --- a/openssl/BUILD.gn +++ b/openssl/BUILD.gn @@ -47,7 +47,6 @@ ohos_cargo_crate("lib") { "--cfg=ossl110g", "--cfg=ossl110h", "--cfg=ossl111", - "-Copt-level=3", - "-Cprefer-dynamic", + "--cfg=ossl300", ] }