diff options
author | Gunnar Andersson <gandersson@genivi.org> | 2018-08-31 10:09:52 +0200 |
---|---|---|
committer | gunnarx <gunnarx@users.noreply.github.com> | 2018-09-06 18:14:00 +0200 |
commit | a90aed542bff6d50951ea74ecbb3baad3e99ded1 (patch) | |
tree | a0f716cc08756b5d5af3bccfeb59b97124d929a2 | |
parent | abca8029c8771a5b7f7d1de96aa327d08bea68f8 (diff) | |
download | meta-ivi-a90aed542bff6d50951ea74ecbb3baad3e99ded1.tar.gz meta-ivi-a90aed542bff6d50951ea74ecbb3baad3e99ded1.tar.bz2 meta-ivi-a90aed542bff6d50951ea74ecbb3baad3e99ded1.zip |
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 <gandersson@genivi.org>
-rw-r--r-- | meta-ivi/conf/distro/poky-ivi-systemd.conf | 5 |
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 --- a/meta-ivi/conf/distro/poky-ivi-systemd.conf +++ b/meta-ivi/conf/distro/poky-ivi-systemd.conf @@ -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" |