Fix QEMU compilation with security flags 23/5823/4
authorManuel Bachmann <mbc@iot.bzh>
Sun, 5 Jun 2016 15:35:31 +0000 (15:35 +0000)
committerGerrit Code Review <gerrit@172.30.200.200>
Tue, 7 Jun 2016 15:04:06 +0000 (15:04 +0000)
Since we added compilation security flags (https://gerrit.
automotivelinux.org/gerrit/#/c/5631/), QEMU builds break
when compiling llvm3.3, which is a Mesa dependency.
(most hardware boards do not complain because they do not
rely on Mesa, but on specific graphics drivers instead)

Problem was reported on the mailing list :
https://lists.linuxfoundation.org/pipermail/
automotive-discussions/2016-June/002091.html

This a local backport of the following upstream patch :
http://lists.openembedded.org/pipermail/openembedded-devel/
2016-June/107727.html

Change-Id: Idd378802b303c16de5c0410d533d1680fcef4bb7
Signed-off-by: Manuel Bachmann <mbc@iot.bzh>
meta-agl/conf/distro/poky-agl.conf

index e9f5a1c..6d6f120 100644 (file)
@@ -137,3 +137,6 @@ BB_DANGLINGAPPENDS_WARNONLY = "1"
 
 # enforce security-related compiler flags by default
 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}"