diff --git a/BUILD.gn b/BUILD.gn index 7f1da2aff6eab358211b02714b153948afef8d52..cf776b140d9e7c172139d9c8d2b558c21cd34b31 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 0000000000000000000000000000000000000000..097291097564abfe050c5a7e68af54afeae362cc --- /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 0000000000000000000000000000000000000000..097291097564abfe050c5a7e68af54afeae362cc --- /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 0000000000000000000000000000000000000000..097291097564abfe050c5a7e68af54afeae362cc --- /dev/null +++ b/libssl_shared.map @@ -0,0 +1,4 @@ +openssl_3.0.7 { + global: + *; +};