summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorJoe Slater <joe.slater@windriver.com>2020-06-06 10:17:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-18 12:25:01 +0100
commit0fc9d32ae11ebb53aa33342f50887c1e692a1f32 (patch)
treedf9da515a44a7859a101e571a9fb5345ed4382ee /meta/recipes-support
parent5d53b2117ba860b33fef6aad1000e9c5efb4f2a7 (diff)
downloadpoky-0fc9d32ae11ebb53aa33342f50887c1e692a1f32.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) Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 18129cbaeddb3278efe9963718556e3765f06c1e) Signed-off-by: Steve Sakoman <steve@sakoman.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.bb5
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"
8ALTERNATIVE_${PN}_append = " xxd" 8ALTERNATIVE_${PN}_append = " xxd"
9ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd" 9ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
10ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd" 10ALTERNATIVE_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#
15lcl_maybe_fortify = "${@oe.utils.conditional('DEBUG_BUILD','1','','-D_FORTIFY_SOURCE=1',d)}"