From 57162d031c92dc59dbc220a1570ada87aa65d6b5 Mon Sep 17 00:00:00 2001 From: jiangminsen Date: Thu, 23 Jan 2025 10:49:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=B8=83=E5=BC=8F=E5=8C=85=E7=AE=A1?= =?UTF-8?q?=E7=90=86rom=E6=B7=BB=E5=8A=A0=E7=BC=96=E8=AF=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangminsen --- interfaces/inner_api/BUILD.gn | 6 +++++- interfaces/kits/js/distributebundlemgr/BUILD.gn | 6 +++++- interfaces/kits/js/distributedBundle/BUILD.gn | 6 +++++- services/dbms/BUILD.gn | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/interfaces/inner_api/BUILD.gn b/interfaces/inner_api/BUILD.gn index 4458b73..94bd0eb 100644 --- a/interfaces/inner_api/BUILD.gn +++ b/interfaces/inner_api/BUILD.gn @@ -31,7 +31,11 @@ ohos_shared_library("dbms_fwk") { } cflags = [ "-fstack-protector-strong" ] - cflags_cc = cflags + cflags_cc = [ + "-Os", + "-fno-unwind-tables", + "-fstack-protector-strong", + ] sources = [ "src/distributed_bms_proxy.cpp" ] diff --git a/interfaces/kits/js/distributebundlemgr/BUILD.gn b/interfaces/kits/js/distributebundlemgr/BUILD.gn index 196b268..8c9f90c 100644 --- a/interfaces/kits/js/distributebundlemgr/BUILD.gn +++ b/interfaces/kits/js/distributebundlemgr/BUILD.gn @@ -27,7 +27,11 @@ ohos_shared_library("distributedbundle") { } cflags = [ "-fstack-protector-strong" ] - cflags_cc = cflags + cflags_cc = [ + "-Os", + "-fno-unwind-tables", + "-fstack-protector-strong", + ] include_dirs = [] defines = [ diff --git a/interfaces/kits/js/distributedBundle/BUILD.gn b/interfaces/kits/js/distributedBundle/BUILD.gn index 0c1964b..f1a0450 100644 --- a/interfaces/kits/js/distributedBundle/BUILD.gn +++ b/interfaces/kits/js/distributedBundle/BUILD.gn @@ -27,7 +27,11 @@ ohos_shared_library("distributedbundlemanager") { } cflags = [ "-fstack-protector-strong" ] - cflags_cc = cflags + cflags_cc = [ + "-Os", + "-fno-unwind-tables", + "-fstack-protector-strong", + ] defines = [ "APP_LOG_TAG = \"DistributedBundleMgrService\"", diff --git a/services/dbms/BUILD.gn b/services/dbms/BUILD.gn index 6567949..60c221b 100644 --- a/services/dbms/BUILD.gn +++ b/services/dbms/BUILD.gn @@ -37,7 +37,11 @@ ohos_shared_library("libdbms") { } cflags = [ "-fstack-protector-strong" ] - cflags_cc = cflags + cflags_cc = [ + "-Os", + "-fno-unwind-tables", + "-fstack-protector-strong", + ] sources = [ "src/account_manager_helper.cpp", -- Gitee