LLVM3.3 build fix on qemux86-64 63/9063/2
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Sat, 8 Apr 2017 22:57:35 +0000 (00:57 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Sun, 9 Apr 2017 16:12:34 +0000 (16:12 +0000)
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

index 0fc9fb2..ad779bb 100644 (file)
@@ -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++ = ""