diff --git a/container/BUILD.gn b/container/BUILD.gn index 5c652433dcf3220bf58af9714494f115d8674872..32d7c2ac89bff39e5032c8466e621e267ff1b79f 100644 --- a/container/BUILD.gn +++ b/container/BUILD.gn @@ -51,6 +51,10 @@ action("build_js_ts") { } } +config("container_config") { + cflags = [ "-fstack-protector-all" ] +} + # libs template("container_lib") { forward_variables_from(invoker, "*") @@ -118,6 +122,8 @@ template("container_lib") { deps += [ dep_abc ] deps += [ dep_js ] + configs = [ ":container_config" ] + if (is_standard_system) { external_deps = [ "hiviewdfx_hilog_native:libhilog" ] } else {