diff --git a/BUILD.gn b/BUILD.gn index 7f1da2aff6eab358211b02714b153948afef8d52..ba7ec20909b7f8f120494d089fb52d69e11ee6be 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -14,6 +14,10 @@ import("//build/config/config.gni") import("//build/ohos.gni") +declare_args() { + netstack_feature_http3 = false +} + print("openssl detecting os now...") print("current_cpu = ${current_cpu}") print("current_os = ${current_os}") @@ -1572,6 +1576,9 @@ ohos_static_library("libcrypto_static") { if (is_mingw || is_mac) { ohos_shared_library("libcrypto_restool") { + if (netstack_feature_http3) { + version_script = "libcrypto_restool.map" + } sources = [] configs = [] deps = [ ":crypto_source" ] @@ -1590,6 +1597,9 @@ if (is_mingw || is_mac) { } ohos_shared_library("libcrypto_shared") { + if (netstack_feature_http3) { + version_script = "libcrypto_shared.map" + } sources = [] configs = [] deps = [ @@ -1733,6 +1743,9 @@ ohos_shared_library("libssl_shared") { ":openssl.cnf", ":ssl_source", ] + if (netstack_feature_http3) { + 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..40554ec793d34a08477634cd13716c76cdde52cc --- /dev/null +++ b/libcrypto_restool.map @@ -0,0 +1,4 @@ +openssl { + global: + *; +}; diff --git a/libcrypto_shared.map b/libcrypto_shared.map new file mode 100644 index 0000000000000000000000000000000000000000..40554ec793d34a08477634cd13716c76cdde52cc --- /dev/null +++ b/libcrypto_shared.map @@ -0,0 +1,4 @@ +openssl { + global: + *; +}; diff --git a/libssl_shared.map b/libssl_shared.map new file mode 100644 index 0000000000000000000000000000000000000000..40554ec793d34a08477634cd13716c76cdde52cc --- /dev/null +++ b/libssl_shared.map @@ -0,0 +1,4 @@ +openssl { + global: + *; +};