link staticaly with libcmt

This commit is contained in:
Igor Sysoev 2009-04-01 12:58:31 +00:00
parent 24c2787163
commit 32ab2f7e64

View File

@ -2,7 +2,9 @@
# Copyright (C) Igor Sysoev # Copyright (C) Igor Sysoev
# MSVC 6.0 SP2, MSVC Toolkit 2003 (7.1), MSVC 2005 Express Edition SP1 (8.0) # MSVC 6.0 SP2
# MSVC Toolkit 2003 (7.1)
# MSVC 2005 Express Edition SP1 (8.0)
# optimizations # optimizations
@ -76,13 +78,11 @@ LINK="\$(CC)"
# the link flags # the link flags
CORE_LINK="$CORE_LINK -link -verbose:lib" CORE_LINK="$CORE_LINK -link -verbose:lib"
if [ $NGX_CC_NAME = msvc7 ]; then # link with libcmt.lib, multithreaded
# link with libcmt.lib, multithreaded LIBC="-MT"
LIBC="-MT" # link with msvcrt.dll
else # however, MSVC Toolkit 2003 has no MSVCRT.LIB
# link with msvcrt.dll #LIBC="-MD"
LIBC="-MD"
fi
CFLAGS="$CFLAGS $LIBC" CFLAGS="$CFLAGS $LIBC"