Mercurial > hg > nginx
comparison auto/os/win32 @ 5360:3d2d3e1cf427
Win32: MinGW GCC compatibility.
Several warnings silenced, notably (ngx_socket_t) -1 is now checked
on socket operations instead of -1, as ngx_socket_t is unsigned on win32
and gcc complains on comparison.
With this patch, it's now possible to compile nginx using mingw gcc,
with options we normally compile on win32.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 04 Sep 2013 20:48:28 +0400 |
parents | d620f497c50f |
children | 4dc8e7b62216 |
comparison
equal
deleted
inserted
replaced
5359:2fda9065d0f4 | 5360:3d2d3e1cf427 |
---|---|
7 | 7 |
8 CORE_INCS="$WIN32_INCS" | 8 CORE_INCS="$WIN32_INCS" |
9 CORE_DEPS="$WIN32_DEPS" | 9 CORE_DEPS="$WIN32_DEPS" |
10 CORE_SRCS="$WIN32_SRCS $IOCP_SRCS" | 10 CORE_SRCS="$WIN32_SRCS $IOCP_SRCS" |
11 OS_CONFIG="$WIN32_CONFIG" | 11 OS_CONFIG="$WIN32_CONFIG" |
12 CORE_LIBS="$CORE_LIBS advapi32.lib ws2_32.lib" | |
13 NGX_ICONS="$NGX_WIN32_ICONS" | 12 NGX_ICONS="$NGX_WIN32_ICONS" |
14 SELECT_SRCS=$WIN32_SELECT_SRCS | 13 SELECT_SRCS=$WIN32_SELECT_SRCS |
14 | |
15 case "$NGX_CC_NAME" in | |
16 | |
17 gcc) | |
18 CORE_LIBS="$CORE_LIBS -ladvapi32 -lws2_32" | |
19 ;; | |
20 | |
21 *) | |
22 CORE_LIBS="$CORE_LIBS advapi32.lib ws2_32.lib" | |
23 ;; | |
24 | |
25 esac | |
15 | 26 |
16 EVENT_MODULES="$EVENT_MODULES $IOCP_MODULE" | 27 EVENT_MODULES="$EVENT_MODULES $IOCP_MODULE" |
17 EVENT_FOUND=YES | 28 EVENT_FOUND=YES |
18 | 29 |
19 if [ $EVENT_SELECT = NO ]; then | 30 if [ $EVENT_SELECT = NO ]; then |