[OpenWrt-Devel] [PATCH 4/8] tools/coreutils: add cygwin compatibility
Rosen Penev
rosenp at gmail.com
Mon Oct 7 21:02:21 EDT 2019
From: Alexey Loukianov <lx2 at lexa2.ru>
Properly handle ".exe" suffix on CYGWIN hosts.
Signed-off-by: Alexey Loukianov <lx2 at lexa2.ru>
(rebased)
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
tools/coreutils/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tools/coreutils/Makefile b/tools/coreutils/Makefile
index e338796053..8de2cb9894 100644
--- a/tools/coreutils/Makefile
+++ b/tools/coreutils/Makefile
@@ -16,7 +16,13 @@ PKG_HASH:=8891d349ee87b9ff7870f52b6d9312a9db672d2439d289bc57084771ca21656b
HOST_BUILD_PARALLEL := 1
-BUILD_PROGRAMS = date readlink touch
+ifeq (CYGWIN,$(findstring CYGWIN,$(HOST_OS)))
+EXEC_SUFFIX:=.exe
+else
+EXEC_SUFFIX:=
+endif
+
+BUILD_PROGRAMS = date$(EXEC_SUFFIX) readlink$(EXEC_SUFFIX) touch$(EXEC_SUFFIX)
include $(INCLUDE_DIR)/host-build.mk
--
2.17.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list