From bec7bc4da130a300a3bbcbe333f3335eecdab9b3 Mon Sep 17 00:00:00 2001 From: zxf Date: Tue, 19 Aug 2025 21:47:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=88=E4=BF=9D=E6=8A=A4=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zxf --- frameworks/js/napi/src/reminder/BUILD.gn | 4 ++-- frameworks/reminder/BUILD.gn | 1 + services/reminder/BUILD.gn | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frameworks/js/napi/src/reminder/BUILD.gn b/frameworks/js/napi/src/reminder/BUILD.gn index a5bb1dea0..4dbb59bc3 100644 --- a/frameworks/js/napi/src/reminder/BUILD.gn +++ b/frameworks/js/napi/src/reminder/BUILD.gn @@ -53,7 +53,7 @@ ohos_shared_library("reminderagent") { "publish.cpp", "reminder_common.cpp", ] - + cflags_cc = [ "-fstack-protector-strong" ] deps = [ "${frameworks_module_ans_path}:ans_innerkits", "${frameworks_module_reminder_path}:reminder_innerkits", @@ -110,7 +110,7 @@ ohos_shared_library("reminderagentmanager") { "publish.cpp", "reminder_common.cpp", ] - + cflags_cc = [ "-fstack-protector-strong" ] deps = [ "${frameworks_module_ans_path}:ans_innerkits", "${frameworks_module_reminder_path}:reminder_innerkits", diff --git a/frameworks/reminder/BUILD.gn b/frameworks/reminder/BUILD.gn index 35f1f04e2..9cd8ea19c 100644 --- a/frameworks/reminder/BUILD.gn +++ b/frameworks/reminder/BUILD.gn @@ -73,6 +73,7 @@ ohos_shared_library("reminder_innerkits") { ] sources += filter_include(output_values, [ "*.cpp" ]) defines = [] + cflags_cc = [ "-fstack-protector-strong" ] deps = [ ":reminder_service_interface", "${frameworks_path}/ans:ans_client", diff --git a/services/reminder/BUILD.gn b/services/reminder/BUILD.gn index 182e3404d..6944fba83 100644 --- a/services/reminder/BUILD.gn +++ b/services/reminder/BUILD.gn @@ -194,6 +194,7 @@ ohos_shared_library("libreminder") { "-Oz", "-flto", "-ffunction-sections", + "-fstack-protector-strong", "-fdata-sections", ] sources = [] -- Gitee