From f5e21481adfd2052385abce8af82116d7e553f07 Mon Sep 17 00:00:00 2001 From: 15549494042 Date: Tue, 16 Jan 2024 16:21:47 +0800 Subject: [PATCH] Add secure compilation options Singed-off-by:dongzhengkuan@huawei.com Signed-off-by: 15549494042 --- BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index be2dc4d7..6259de3d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -250,6 +250,8 @@ config("cups_config") { "-Wno-unused-value", "-Wno-implicit-function-declaration", "-Wno-int-conversion", + "-D_FORTIFY_SOURCE=2", + "-fstack-protector-all", ] }