diff options
author | Joe Slater <joe.slater@windriver.com> | 2020-06-06 10:17:01 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-08 21:42:24 +0100 |
commit | 18129cbaeddb3278efe9963718556e3765f06c1e (patch) | |
tree | 90c271bf04914f48f94f32a5fd8a90164924c032 /meta/recipes-support | |
parent | 6b5f7bda4204d45cd29670cefcd53dc5da031095 (diff) | |
download | openembedded-core-18129cbaeddb3278efe9963718556e3765f06c1e.tar.gz |
vim: _FORTIFY_SOURCE=2 be gone
vim will abort in many places with this setting. Replace
it with the benign _FORTIFY_SOURCE=1.
Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/vim/vim_8.2.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-support/vim/vim_8.2.bb b/meta/recipes-support/vim/vim_8.2.bb index 60946a181f..709b6ddb55 100644 --- a/meta/recipes-support/vim/vim_8.2.bb +++ b/meta/recipes-support/vim/vim_8.2.bb @@ -8,3 +8,8 @@ BBCLASSEXTEND = "native" ALTERNATIVE_${PN}_append = " xxd" ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd" ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd" + +# We override the default in security_flags.inc because vim (not vim-tiny!) will abort +# in many places for _FORTIFY_SOURCE=2. Security flags become part of CC. +# +lcl_maybe_fortify = "${@oe.utils.conditional('DEBUG_BUILD','1','','-D_FORTIFY_SOURCE=1',d)}" |