|author||Gunnar Andersson <email@example.com>||2018-08-31 10:09:52 +0200|
|committer||gunnarx <firstname.lastname@example.org>||2018-09-06 18:14:00 +0200|
dbus: adjust "blacklist" for hardening flags
Various component don't compile well with the added so called "hardening flags". The FORTIFY_SOURCE feature requires optimization to be enabled (-O1 or -O2 depending...) It seems it would be better to force optimization on, than to disable the "hardening flags" for these, but disabling them seems standard practice. (You are no worse off than before "hardening flags" were added. And all other components benefit). See c5db7bafd3c837e, but also note that poky distro includes disabling these for many components already. There is a remaining unused-variable warning=error, which can be squelched for the moment. Later on, it ought to be restored. I would think setting the right compiler flags should eventually be done in the standard poky recipe (or possibly even, component upstream). Signed-off-by: Gunnar Andersson <email@example.com>
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-ivi/conf/distro/poky-ivi-systemd.conf b/meta-ivi/conf/distro/poky-ivi-systemd.conf
index 4cdd6ef..6244bb6 100644
@@ -44,4 +44,9 @@ SECURITY_LDFLAGS_pn-v86d = ""
SECURITY_CFLAGS_pn-gettext = ""
SECURITY_LDFLAGS_pn-gettext = ""
+# The unused variable was still there in dbus-1.12 (during certain #ifdef
+# conditions). It seems to be fixed later, so this can be set to empty
+# string again.
+SECURITY_CFLAGS_pn-dbus = "-Wno-error=unused-variable"
QEMU_TARGETS ?= "arm aarch64 i386 x86_64"