From 94fab39d4cbb2a3d78f6cb07af17be09fa8af4f2 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 5 Apr 2007 23:12:50 +0000 Subject: [PATCH] Jamfile fixes for cygwin --- Jamfile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Jamfile b/Jamfile index b2821e359..68823b620 100755 --- a/Jamfile +++ b/Jamfile @@ -97,8 +97,13 @@ LIBS = ; if [ os.name ] = CYGWIN { + lib wsock32 : : wsock32 ; + lib ws2_32 : : ws2_32 ; + LIBS += wsock32 ws2_32 ; + DEFINES += WIN32_LEAN_AND_MEAN ; + DEFINES += _WIN32_WINNT=0x0500 ; DEFINES += __USE_W32_SOCKETS ; - DEFINES += _WIN32_WINNT ; + DEFINES += WIN32 ; } # some windows specific settings @@ -107,7 +112,9 @@ if [ os.name ] = NT { lib wsock32 : : wsock32.lib ; LIBS += wsock32 ; - DEFINES += _WIN32_WINNT ; + DEFINES += WIN32_LEAN_AND_MEAN ; + DEFINES += _WIN32_WINNT=0x0500 ; + DEFINES += WIN32 ; } @@ -128,13 +135,9 @@ project torrent /boost/filesystem//boost_filesystem #/static /boost/date_time//boost_date_time #/static multi - msvc:_WIN32_WINNT=0x0500 -# WIN32 makes sure the win32 socket api is used -# instead of win16 - msvc:WIN32 -# without WIN32_LEAN_AND_MEAN there will be conflicts between -# winsock.h and winsock2.h - msvc:WIN32_LEAN_AND_MEAN + +# ======= compiler settings ======= + # these compiler settings just makes the compiler standard conforming msvc:/Zc:wchar_t msvc:/Zc:forScope @@ -158,7 +161,6 @@ project torrent BOOST_ALL_NO_LIB $(DEFINES) shared:TORRENT_LINKING_SHARED - ; #cpp-pch pch : include/libtorrent/pch.hpp ;