aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-06-13 08:13:25 +0100
committerRon Yorston <rmy@pobox.com>2021-06-13 08:13:25 +0100
commitf7e4fe39a69b82bcef1aaa68111ccfa68b209ada (patch)
tree23d63dd3d27f4fdb6e475c35e348b3c8299e6e6c /Makefile.flags
parentcfac1da2aaccaf45a669b0a53c82a32c8231827c (diff)
downloadbusybox-w32-f7e4fe39a69b82bcef1aaa68111ccfa68b209ada.tar.gz
busybox-w32-f7e4fe39a69b82bcef1aaa68111ccfa68b209ada.tar.bz2
busybox-w32-f7e4fe39a69b82bcef1aaa68111ccfa68b209ada.zip
win32: add local dirent implementation
Add a cut down version of the dirent implementation from git. The git developers said: The mingw-runtime implemenation of opendir, readdir and closedir sets errno to 0 on success, something that POSIX explicitly forbids. This also avoids having to link against libssp.a (commit 13eb34205) and reduces the size of the binary by 2KB.
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 0950ddb0d..2687781f1 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -149,7 +149,7 @@ endif
149ifeq ($(CONFIG_PLATFORM_MINGW32),y) 149ifeq ($(CONFIG_PLATFORM_MINGW32),y)
150CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-builtin-stpncpy -fno-ident -fno-builtin-strndup 150CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-builtin-stpncpy -fno-ident -fno-builtin-strndup
151EXEEXT = .exe 151EXEEXT = .exe
152LDLIBS += ws2_32 mingwex -l:libssp.a 152LDLIBS += ws2_32
153endif 153endif
154 154
155ifneq ($(CONFIG_PLATFORM_MINGW32),y) 155ifneq ($(CONFIG_PLATFORM_MINGW32),y)