blob: d745800ced3aecc5bd952b0242d979969792b7d0 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 9e3816bcaa36e1a11647ca0cf4f8044449c77fe0 Mon Sep 17 00:00:00 2001
Brad Bishop316dfdd2018-06-25 12:45:53 -04002From: Chen Qi <Qi.Chen@windriver.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08003Date: Mon, 2 Jul 2018 15:28:22 +0800
Brad Bishop316dfdd2018-06-25 12:45:53 -04004Subject: [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
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011Upstream-Status: Inappropriate [musl Specific]
Brad Bishop316dfdd2018-06-25 12:45:53 -040012
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
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080019index f432ea072..a734a295c 100644
Brad Bishop316dfdd2018-06-25 12:45:53 -040020--- a/meson.build
21+++ b/meson.build
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022@@ -333,8 +333,6 @@ possible_cc_flags = [
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
Brad Bishop316dfdd2018-06-25 12:45:53 -040031--
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800322.11.0
Brad Bishop316dfdd2018-06-25 12:45:53 -040033