From 9bf4694b3911a9de7d8d216fa0d8f35e1a8aac0b Mon Sep 17 00:00:00 2001
From: =?utf8?q?Jan-Simon=20M=C3=B6ller?= <jsmoeller@linuxfoundation.org>
Date: Sun, 9 Apr 2017 00:57:35 +0200
Subject: [PATCH] LLVM3.3 build fix on qemux86-64
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

The build for qemux86-64 will fail on llvm3.3 b/c of the SECURITY_CFLAGS and SECURITY_LDFLAGS
(due to -fstack-protector-strong).

Fix it by blacklisting the flags for llvm3.3 .

Change-Id: I506c398521b59877d78e56d698571e272b52e94a
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
---
 meta-agl-distro/conf/distro/poky-agl.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-agl-distro/conf/distro/poky-agl.conf b/meta-agl-distro/conf/distro/poky-agl.conf
index 0fc9fb20b..ad779bbdc 100644
--- a/meta-agl-distro/conf/distro/poky-agl.conf
+++ b/meta-agl-distro/conf/distro/poky-agl.conf
@@ -74,7 +74,8 @@ PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
 require conf/distro/include/security_flags.inc
 # required overrides, upstreamed but not merged yet:
 # http://lists.openembedded.org/pipermail/openembedded-devel/2016-June/107727.html
-#SECURITY_CFLAGS_pn-llvm3.3 = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-llvm3.3 = ""
+SECURITY_LDFLAGS_remove_pn-llvm3.3 = "-fstack-protector-strong"
 SECURITY_STRINGFORMAT_pn-gpm = ""
 SECURITY_CFLAGS_pn-libdbus-c++ = ""
 SECURITY_LDFLAGS_pn-libdbus-c++ = ""
-- 
2.16.6