Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]>
---
 Makefile       |    1 +
 Makefile.flags |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index a40be79..9648604 100644
--- a/Makefile
+++ b/Makefile
@@ -481,6 +481,7 @@ libs-y		:= \
 		sysklogd/ \
 		util-linux/ \
 		util-linux/volume_id/ \
+		win32/ \
 
 endif # KBUILD_EXTMOD
 
diff --git a/Makefile.flags b/Makefile.flags
index 60bb888..3daccc8 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -97,7 +97,13 @@ CFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_CFLAGS)))
 #"))
 endif
 
+ifeq ($(CONFIG_TARGET_WIN32),y)
+# These defintions are not strictly needed, but they help shut up fnmatch.c warnings
+CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0
+X = .exe
+else
 LDLIBS += m crypt
+endif
 
 ifeq ($(CONFIG_PAM),y)
 LDLIBS += pam pam_misc
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to