blob: e913e3f7b55642567b9ff5f402d46b811b8ae779 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From e361f6b4aefae57efff7e457df8db4d1067bec23 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Wed, 28 Feb 2018 21:50:23 -0800
4Subject: [PATCH] Remove fstack-protector flags to workaround musl build
5
6Remove fstack-protector and fstack-protector-strong flags to fix
7the following build failure for qemux86 and qemuppc with musl.
8
9 undefined reference to `__stack_chk_fail_local'
10
11Upstream-Status: Inappropriate [OE Specific]
12
13Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
14---
15 meson.build | 2 --
16 1 file changed, 2 deletions(-)
17
18diff --git a/meson.build b/meson.build
19index 7610ab12b..591b9cbab 100644
20--- a/meson.build
21+++ b/meson.build
22@@ -329,8 +329,6 @@ foreach arg : ['-Wextra',
23 '-fdiagnostics-show-option',
24 '-fno-strict-aliasing',
25 '-fvisibility=hidden',
26- '-fstack-protector',
27- '-fstack-protector-strong',
28 '--param=ssp-buffer-size=4',
29 ]
30 if cc.has_argument(arg)
31--
322.13.0
33