diff --git a/services/param/base/BUILD.gn b/services/param/base/BUILD.gn index 10e88d96d0e988b35e29f66efd984bfbdd2501a7..5214aedc37a411cce57b1b4babcd83801d82bcd8 100644 --- a/services/param/base/BUILD.gn +++ b/services/param/base/BUILD.gn @@ -165,14 +165,14 @@ if (defined(ohos_lite)) { deps = [] include_dirs += [ "//base/startup/init/services/init/include" ] - external_deps = [ "bounds_checking_function:libsec_static" ] + external_deps = [ "bounds_checking_function:libsec_shared" ] if (build_selinux) { defines += [ "PARAM_SUPPORT_SELINUX", "PARAMWORKSPACE_NEED_MUTEX", ] external_deps += [ - "selinux:libselinux_static", + "selinux:libselinux", "selinux_adapter:libselinux_parameter_static", ] } diff --git a/services/param/linux/BUILD.gn b/services/param/linux/BUILD.gn index 2ce7155d6ab1d12d511eb8b0011524085edd8771..5cb15e0a138ac39d9c7b2fb6264f088e7a382997 100755 --- a/services/param/linux/BUILD.gn +++ b/services/param/linux/BUILD.gn @@ -170,10 +170,12 @@ if (defined(ohos_lite)) { ] external_deps = [ "bounds_checking_function:libsec_static", - "cJSON:cjson_static", + "cJSON:cjson", "selinux_adapter:libselinux_parameter_static", ] + public_external_deps = [ "selinux:libselinux" ] + cflags = [ "-Wno-deprecated-pragma" ] defines = [ "_GNU_SOURCE",