summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 82bb625..c724706 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,8 @@ OPTIMD =
CFLAGS = /W3 /MD /nologo /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
CFLAGSD = /Zi $(CFLAGS)
+# Uncomment this if config.h defines RETAIN_WSALASTERROR
+#XLIBS = wsock32.lib
# Default cleanup style
CLEANUP = __CLEANUP_C
@@ -57,6 +59,7 @@ DLL_OBJS = \
condvar.obj \
create.obj \
dll.obj \
+ autostatic.obj \
errno.obj \
exit.obj \
fork.obj \
@@ -114,6 +117,7 @@ SMALL_STATIC_OBJS = \
pthread_cond_wait.obj \
create.obj \
dll.obj \
+ autostatic.obj \
errno.obj \
pthread_exit.obj \
fork.obj \
@@ -466,12 +470,12 @@ install: $(DLLS)
$(DLLS): $(DLL_OBJS)
cl /LDd /Zi /nologo $(DLL_OBJS) \
/link /nodefaultlib:libcmt /implib:$*.lib \
- msvcrt.lib wsock32.lib /out:$@
+ msvcrt.lib ${XLIBS} /out:$@
$(INLINED_STAMPS): $(DLL_INLINED_OBJS)
cl /LDd /Zi /nologo $(DLL_INLINED_OBJS) \
/link /nodefaultlib:libcmt /implib:$*.lib \
- msvcrt.lib wsock32.lib /out:$*.dll
+ msvcrt.lib ${XLIBS} /out:$*.dll
$(STATIC_STAMPS): $(DLL_INLINED_OBJS)
if exist $*.lib del $*.lib