diff options
-rw-r--r-- | meta-oe/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch | 38 | ||||
-rw-r--r-- | meta-oe/recipes-support/vim/vim_7.4.258.bb | 2 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch b/meta-oe/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch new file mode 100644 index 0000000000..693d130e49 --- /dev/null +++ b/meta-oe/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | vim: add knob whether elf.h are checked | ||
2 | |||
3 | Previously, it still was checked when there was no elf library in sysroots directory. | ||
4 | Add knob to decide whether elf.h are checked or not. | ||
5 | |||
6 | Upstream-status: Pending | ||
7 | |||
8 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | ||
9 | --- | ||
10 | src/configure.in | 7 +++++++ | ||
11 | 1 file changed, 7 insertions(+) | ||
12 | |||
13 | diff --git a/src/configure.in b/src/configure.in | ||
14 | index d734064..f504fa6 100644 | ||
15 | --- a/src/configure.in | ||
16 | +++ b/src/configure.in | ||
17 | @@ -2483,11 +2483,18 @@ AC_TRY_COMPILE([#include <stdio.h>], [int x __attribute__((unused));], | ||
18 | AC_MSG_RESULT(no)) | ||
19 | |||
20 | dnl Checks for header files. | ||
21 | +AC_MSG_CHECKING(whether or not to look for elf.h) | ||
22 | +AC_ARG_ENABLE(elf-check, | ||
23 | + [ --enable-elf-check If elfutils, check for elf.h [default=no]], | ||
24 | + , enable_elf_check="no") | ||
25 | +AC_MSG_RESULT($enable_elf_check) | ||
26 | +if test "x$enable_elf_check" != "xno"; then | ||
27 | AC_CHECK_HEADER(elf.h, HAS_ELF=1) | ||
28 | dnl AC_CHECK_HEADER(dwarf.h, SVR4=1) | ||
29 | if test "$HAS_ELF" = 1; then | ||
30 | AC_CHECK_LIB(elf, main) | ||
31 | fi | ||
32 | +fi | ||
33 | |||
34 | AC_HEADER_DIRENT | ||
35 | |||
36 | -- | ||
37 | 1.7.9.5 | ||
38 | |||
diff --git a/meta-oe/recipes-support/vim/vim_7.4.258.bb b/meta-oe/recipes-support/vim/vim_7.4.258.bb index 9c6e231ad1..19c8abc7ea 100644 --- a/meta-oe/recipes-support/vim/vim_7.4.258.bb +++ b/meta-oe/recipes-support/vim/vim_7.4.258.bb | |||
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://../runtime/doc/uganda.txt;md5=b779e18be6ed77facc77069 | |||
8 | 8 | ||
9 | SRC_URI = "hg://vim.googlecode.com/hg/;protocol=https;module=vim \ | 9 | SRC_URI = "hg://vim.googlecode.com/hg/;protocol=https;module=vim \ |
10 | file://disable_acl_header_check.patch;patchdir=.. \ | 10 | file://disable_acl_header_check.patch;patchdir=.. \ |
11 | file://vim-add-knob-whether-elf.h-are-checked.patch;patchdir=.. \ | ||
11 | " | 12 | " |
12 | SRCREV = "v7-4-258" | 13 | SRCREV = "v7-4-258" |
13 | 14 | ||
@@ -38,6 +39,7 @@ PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," | |||
38 | PACKAGECONFIG[x11] = "--with-x,--without-x,xt," | 39 | PACKAGECONFIG[x11] = "--with-x,--without-x,xt," |
39 | PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," | 40 | PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," |
40 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," | 41 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," |
42 | PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," | ||
41 | 43 | ||
42 | EXTRA_OECONF = " \ | 44 | EXTRA_OECONF = " \ |
43 | --disable-gpm \ | 45 | --disable-gpm \ |