Browse Source

vim: fix build on non-linux systems after upgrade

The configure script calls uname directly and assumes that it returns
the system to build for.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
lilik-openwrt-22.03
Felix Fietkau 6 years ago
parent
commit
f3b7a2dd2d
2 changed files with 7 additions and 2 deletions
  1. +5
    -2
      utils/vim/Makefile
  2. +2
    -0
      utils/vim/scripts/uname

+ 5
- 2
utils/vim/Makefile View File

@ -116,8 +116,7 @@ CONFIGURE_ARGS += \
--disable-gpm \
--disable-acl \
--with-tlib=ncurses \
--with-compiledby="non-existent-hostname-compiled" \
--disable-darwin
--with-compiledby="non-existent-hostname-compiled"
CONFIGURE_VARS += \
vim_cv_getcwd_broken=no \
@ -129,6 +128,10 @@ CONFIGURE_VARS += \
vim_cv_tty_group=root \
vim_cv_tty_mode=0620
ifneq ($(HOST_OS),Linux)
TARGET_PATH_PKG:=$(CURDIR)/scripts:$(TARGET_PATH_PKG)
endif
define Build/Prepare
$(call Build/Prepare/Default)
$(MAKE) -C $(PKG_BUILD_DIR)/src autoconf


+ 2
- 0
utils/vim/scripts/uname View File

@ -0,0 +1,2 @@
#!/bin/sh
echo "Linux"

Loading…
Cancel
Save