From c29beff921a93ac7164bda4b3e661c84e425df5b Mon Sep 17 00:00:00 2001 From: xcy Date: Wed, 29 May 2024 03:55:27 +0000 Subject: [PATCH] =?UTF-8?q?add=20=E6=A0=88=E4=BF=9D=E6=8A=A4=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xcy --- BUILD.gn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 231887019..4c3c97901 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -47,6 +47,10 @@ if (defined(ohos_lite)) { config("mbedtls_config") { include_dirs = MBEDTLS_INLCUDE_DIRS include_dirs += [ "//third_party/bounds_checking_function/include" ] + cflags = [ + "-fstack-protector-strong", + "-D_FORTIFY_SOURCE=2 -O2", + ] if (ohos_kernel_type == "liteos_m") { defines += [ "__unix__", -- Gitee