diff --git a/services/package/BUILD.gn b/services/package/BUILD.gn index 06506afa0222d3fd90aed400c10aec419dea7b13..92b4d61db36057ccd349a126508b6ea034a56270 100644 --- a/services/package/BUILD.gn +++ b/services/package/BUILD.gn @@ -30,6 +30,11 @@ config("package_config") { "pkg_package", "//third_party/bounds_checking_function/include", ] + if (current_cpu == "arm" && host_os != "mac") { + cflags = [ "-DOPENSSL_ARM_PLATFORM" ] + } else if (current_cpu == "arm64" && host_os != "mac") { + cflags = [ "-DOPENSSL_ARM64_PLATFORM" ] + } } ohos_static_library("libupdaterpackage") { @@ -50,7 +55,9 @@ ohos_static_library("libupdaterpackage") { "$SUBSYSTEM_DIR/pkg_package/pkg_zipfile.cpp", ] - deps = [ "//third_party/bounds_checking_function:libsec_static" ] + deps = [ + "//third_party/bounds_checking_function:libsec_static", + ] configs = [ ":package_config" ] }