diff --git a/interfaces/innerkits/nativetoken/BUILD.gn b/interfaces/innerkits/nativetoken/BUILD.gn index 4a1c16b0fad7ab3a8bbf19352a238db087750935..cf5d9a95b618d27e57cf98b053ffb339f62292c3 100644 --- a/interfaces/innerkits/nativetoken/BUILD.gn +++ b/interfaces/innerkits/nativetoken/BUILD.gn @@ -50,9 +50,10 @@ if (is_standard_system) { "bounds_checking_function:libsec_shared", "cJSON:cjson_static", "hilog:libhilog", - "hisysevent:libhisysevent", ] + public_external_deps = [ "hisysevent:libhisysevent" ] + if (build_selinux) { external_deps += [ "selinux_adapter:librestorecon" ] cflags += [ "-DWITH_SELINUX" ]