From c46e11751742e92f8ecdc242d59b9ed10e5024c4 Mon Sep 17 00:00:00 2001
From: Martin Kelly <mkelly@xevo.com>
Date: Thu, 20 Apr 2017 15:07:18 -0700
Subject: [PATCH] poky-agl: exempt qtwebengine from security flags

qtwebengine does not build with the standard security flags; it doesn't
build cleanly with -fPIE and needs a bugfix to do so. To at least
unblock the build, exempt it from PIE for now.

Bug-AGL: SPEC-560

Change-Id: Iac39ecd429df00c30c24032037c6dcf3254b77c2
Signed-off-by: Martin Kelly <mkelly@xevo.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9157
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
---
 meta-agl-distro/conf/distro/poky-agl.conf | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-agl-distro/conf/distro/poky-agl.conf b/meta-agl-distro/conf/distro/poky-agl.conf
index 08d08d902..ccaae9b2f 100644
--- a/meta-agl-distro/conf/distro/poky-agl.conf
+++ b/meta-agl-distro/conf/distro/poky-agl.conf
@@ -80,6 +80,9 @@ SECURITY_STRINGFORMAT_pn-gpm = ""
 SECURITY_CFLAGS_pn-libdbus-c++ = ""
 SECURITY_LDFLAGS_pn-libdbus-c++ = ""
 
+# Not yet upstreamed; should be submitted.
+SECURITY_CFLAGS_pn-qtwebengine = "${SECURITY_NO_PIE_CFLAGS}"
+
 #Redefined USER_CLASSES
 #Disable prelink. It is unmaintained and likely will go away.
 #default: USER_CLASSES ?= "buildstats image-mklibs image-prelink"
-- 
2.16.6