summaryrefslogtreecommitdiff
path: root/utils/vim
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-10-10 10:50:21 +0200
committerFelix Fietkau <nbd@nbd.name>2018-10-10 10:50:25 +0200
commitf3b7a2dd2d160c48729a2371d6efad90cb792e61 (patch)
tree056cdbf224039e306ad8e740f789951b50299e5f /utils/vim
parent5a610ab565f06aa3cdf4de6a6557f1ed3e802d4d (diff)
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>
Diffstat (limited to 'utils/vim')
-rw-r--r--utils/vim/Makefile7
-rwxr-xr-xutils/vim/scripts/uname2
2 files changed, 7 insertions, 2 deletions
diff --git a/utils/vim/Makefile b/utils/vim/Makefile
index 49d835172..8e9e3f3f0 100644
--- a/utils/vim/Makefile
+++ b/utils/vim/Makefile
@@ -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
diff --git a/utils/vim/scripts/uname b/utils/vim/scripts/uname
new file mode 100755
index 000000000..d2cd56864
--- /dev/null
+++ b/utils/vim/scripts/uname
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "Linux"