From 1e1b07603f8afe5a680e128bafea73aa5a41528a Mon Sep 17 00:00:00 2001 From: chenxu Date: Fri, 24 Nov 2023 17:39:07 +0800 Subject: [PATCH] add version map Signed-off-by: chenxu --- BUILD.gn | 9 +++++++++ libcrypto_restool.map | 4 ++++ libcrypto_shared.map | 4 ++++ libssl_shared.map | 4 ++++ 4 files changed, 21 insertions(+) create mode 100644 libcrypto_restool.map create mode 100644 libcrypto_shared.map create mode 100644 libssl_shared.map diff --git a/BUILD.gn b/BUILD.gn index 7f1da2aff6..cf776b140d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1572,6 +1572,9 @@ ohos_static_library("libcrypto_static") { if (is_mingw || is_mac) { ohos_shared_library("libcrypto_restool") { + if (product_name != "ohos-sdk") { + version_script = "libcrypto_restool.map" + } sources = [] configs = [] deps = [ ":crypto_source" ] @@ -1590,6 +1593,9 @@ if (is_mingw || is_mac) { } ohos_shared_library("libcrypto_shared") { + if (product_name != "ohos-sdk") { + version_script = "libcrypto_shared.map" + } sources = [] configs = [] deps = [ @@ -1733,6 +1739,9 @@ ohos_shared_library("libssl_shared") { ":openssl.cnf", ":ssl_source", ] + if (product_name != "ohos-sdk") { + version_script = "libssl_shared.map" + } if (current_os == "ios") { ldflags = [ "-Wl", diff --git a/libcrypto_restool.map b/libcrypto_restool.map new file mode 100644 index 0000000000..0972910975 --- /dev/null +++ b/libcrypto_restool.map @@ -0,0 +1,4 @@ +openssl_3.0.7 { + global: + *; +}; diff --git a/libcrypto_shared.map b/libcrypto_shared.map new file mode 100644 index 0000000000..0972910975 --- /dev/null +++ b/libcrypto_shared.map @@ -0,0 +1,4 @@ +openssl_3.0.7 { + global: + *; +}; diff --git a/libssl_shared.map b/libssl_shared.map new file mode 100644 index 0000000000..0972910975 --- /dev/null +++ b/libssl_shared.map @@ -0,0 +1,4 @@ +openssl_3.0.7 { + global: + *; +}; -- Gitee