mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 09:47:56 +08:00
mingw fixed winsock linking issue
This commit is contained in:
parent
7afc61ae7c
commit
ea2f6558fd
@ -126,11 +126,12 @@ case "${host_os}" in
|
||||
AC_DEFINE(ZMQ_HAVE_WINDOWS, 1, [Have Windows OS])
|
||||
AC_DEFINE(ZMQ_HAVE_MINGW32, 1, [Have MinGW32])
|
||||
AC_CHECK_HEADERS(windows.h)
|
||||
AC_CHECK_LIB(ws2_32, main, ,
|
||||
[AC_MSG_ERROR([Could not link with ws2_32.dll.])])
|
||||
AC_CHECK_LIB(Rpcrt4, main, ,
|
||||
[AC_MSG_ERROR([Could not link with Rpcrt4.dll.])])
|
||||
AC_CHECK_LIB(Iphlpapi, main, ,
|
||||
[AC_MSG_ERROR([Could not link with Iphlpapi.dll.])])
|
||||
LIBS="${LIBS} -lwsock32 -lws2_32"
|
||||
CFLAGS="${CFLAGS} -std=c99"
|
||||
on_mingw32="yes"
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user