1From 6133c87299bce32c13dcf1692842ea5f2890c5ad Mon Sep 17 00:00:00 2001
2From: Sergey Bobrenok <bobrofon@gmail.com>
3Date: Wed, 28 Feb 2024 16:29:17 +0300
4Subject: [PATCH] meson.build: Disable stack protection for Buildroot packaging
5
6In Buildroot, the SSP flags are passed via the wrapper, and only flags
7supported by the toolchain will be used. So the SSP flags can be
8safely removed from the build files.
9
10Fixes:
11  src/basic/libbasic.a.p/log.c.o: in function `write_to_console.isra.0':
12  log.c:(.text.write_to_console.isra.0+0x154): undefined reference to `__stack_chk_fail_local'
13
14Upstream: N/A [Buildroot specific]
15
16Signed-off-by: Sergey Bobrenok <bobrofon@gmail.com>
17---
18 meson.build | 3 ---
19 1 file changed, 3 deletions(-)
20
21diff --git a/meson.build b/meson.build
22index 6f79707..51fd400 100644
23--- a/meson.build
24+++ b/meson.build
25@@ -75,9 +75,6 @@ possible_cc_flags = [
26         '-fdiagnostics-show-option',
27         '-fno-strict-aliasing',
28         '-fvisibility=hidden',
29-        '-fstack-protector',
30-        '-fstack-protector-strong',
31-        '--param=ssp-buffer-size=4',
32 ]
33
34 # --as-needed and --no-undefined are provided by meson by default,
35
36base-commit: 684a41d68cfbb05e38aacb60a8548e21ddfbecdb
37--
382.43.2
39
40