From 7bb2502e79cde089e3c2c80e6732489bd6a80ee6 Mon Sep 17 00:00:00 2001 From: haotuo <380743811@qq.com> Date: Wed, 31 May 2023 15:25:16 +0800 Subject: [PATCH] Disable fortify for lite linux build Issue:#I70BYR Test: pass system build test && libctest Signed-off-by: haotuo Change-Id: I1e75246acbdc2e6b17e19d2dda98f981be3f904e --- config/BUILD.gn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/BUILD.gn b/config/BUILD.gn index 24b77d5..9154923 100644 --- a/config/BUILD.gn +++ b/config/BUILD.gn @@ -74,7 +74,8 @@ config("common") { } config("security") { - defines = [ "_FORTIFY_SOURCE=2" ] + # Need to support fortify ability first in musl libc, so disable the option temporarily + # defines = [ "_FORTIFY_SOURCE=2" ] cflags = [ "-fstack-protector-all" ] cflags_cc = cflags -- Gitee