Commit 70aab459 by Ramsay Jones

win32: Remove wsock32 from the list of libraries to link

Commit 5dddf7c8 (Add block-sha1 in favour of the mozilla routines
2010-04-14) introduced the "bswap.h" header file which, for x86
or x86-64 machines, provides a "sane" implementation of ntohl()
and htonl().

The wsock32 library, on the msvc and MinGW build, is only included
in the link to supply the ntohl()/htonl() routines.  Since we now
have a built-in implementation, we can remove the wsock32 library
from the link.

[This will break a Windows build on a non-intel machine]

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
parent e272b103
......@@ -32,13 +32,13 @@ ifeq ($(uname_S),Windows)
LD_OUT=-out:
CC_OUT=-Fo
LIBS = ..\\libgit2.a libz.lib wsock32.lib
LIBS = ..\\libgit2.a libz.lib
CRYPTO_LIB = libeay32.lib
endif
ifneq (,$(findstring MINGW,$(uname_S)))
OS=win32
EXTRA_LIBS += -lwsock32 -lpthread
EXTRA_LIBS += -lpthread
endif
-include ../config.mak
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment