diff options
author | Joe Slater <joe.slater@windriver.com> | 2020-07-09 00:07:52 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-04 23:17:37 +0100 |
commit | 662919a486406b322f96cc72744b3823c0eb1469 (patch) | |
tree | 92df96fb37ef89272ee3c2c3aa82ced17b43bfda | |
parent | d7c037ccdd8b7a0528103b57faabdb42bd95e1e9 (diff) | |
download | poky-662919a486406b322f96cc72744b3823c0eb1469.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.
(From OE-Core rev: d9de155f6452f916edd3131addd0c2eebaf4d639)
(From OE-Core rev: db1e93c33150e712b90e81450fd2e161ea2fad08)
Signed-off-by: Joe Slater <joe.slater@windriver.com>
(cherry picked from commit 18129cbaeddb3278efe9963718556e3765f06c1e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/vim/vim_8.1.1518.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-support/vim/vim_8.1.1518.bb b/meta/recipes-support/vim/vim_8.1.1518.bb index 60946a181f..709b6ddb55 100644 --- a/meta/recipes-support/vim/vim_8.1.1518.bb +++ b/meta/recipes-support/vim/vim_8.1.1518.bb | |||
@@ -8,3 +8,8 @@ BBCLASSEXTEND = "native" | |||
8 | ALTERNATIVE_${PN}_append = " xxd" | 8 | ALTERNATIVE_${PN}_append = " xxd" |
9 | ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd" | 9 | ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd" |
10 | ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd" | 10 | ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd" |
11 | |||
12 | # We override the default in security_flags.inc because vim (not vim-tiny!) will abort | ||
13 | # in many places for _FORTIFY_SOURCE=2. Security flags become part of CC. | ||
14 | # | ||
15 | lcl_maybe_fortify = "${@oe.utils.conditional('DEBUG_BUILD','1','','-D_FORTIFY_SOURCE=1',d)}" | ||