diff --git a/interfaces/kits/slot_info/BUILD.gn b/interfaces/kits/slot_info/BUILD.gn index f79e5b1d29359be77d0cacf256ac0d72dd9bc7b1..e513ffb5d2f6d478a628844c41d68d540e7e022d 100644 --- a/interfaces/kits/slot_info/BUILD.gn +++ b/interfaces/kits/slot_info/BUILD.gn @@ -27,8 +27,12 @@ ohos_static_library("libslotinfo") { deps = [ "${updater_path}/services/log:libupdaterlog" ] if (init_feature_ab_partition) { defines = [ "UPDATER_AB_SUPPORT" ] - external_deps = - [ "drivers_peripheral_partitionslot:libpartition_slot_manager" ] + external_deps = [ + "c_utils:utilsbase", + "drivers_peripheral_partitionslot:libpartition_slot_manager", + "hilog:libhilog_base", + "init:libbegetutil_static", + ] } subsystem_name = "updater" diff --git a/updater_default_cfg.gni b/updater_default_cfg.gni index e2036f204ba0e0f2f69774d693df1f297926b271..796286a3362b12408a1c9cf58b66df6af96a9cf6 100644 --- a/updater_default_cfg.gni +++ b/updater_default_cfg.gni @@ -45,7 +45,7 @@ template("updater_gen") { } else { ohos_executable(target_name) { if (!is_asan && !is_emulator && target_name == "updater_binary") { - static_link = false + static_link = true } forward_variables_from(invoker, "*")