2 # Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
4 # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
16 if [ os.name ] = SOLARIS
21 else if [ os.name ] = NT
26 else if [ os.name ] = HPUX
30 else if [ os.name ] = QNXNTO
34 else if [ os.name ] = HAIKU
41 lib ssl : : <name>ssleay32 ;
42 lib crypto : : <name>libeay32 ;
50 if [ os.name ] = MACOSX
59 <cxxflags>"-fprofile-arcs -ftest-coverage"
67 <cxxflags>"-fsanitize=address -fno-omit-frame-pointer"
68 <linkflags>"-fsanitize=address"
75 <cxxflags>"-fsanitize=memory -fno-omit-frame-pointer -fsanitize-memory-track-origins=2 -fsanitize-memory-use-after-dtor"
76 <linkflags>"-fsanitize=memory"
83 <cxxflags>"-fsanitize=undefined -fno-omit-frame-pointer"
84 <linkflags>"-fsanitize=undefined"
93 <library>/boost/system//boost_system
94 <library>/boost/coroutine//boost_coroutine
95 <library>/boost/filesystem//boost_filesystem
96 <library>/boost/program_options//boost_program_options
97 <define>BOOST_ALL_NO_LIB=1
98 <define>BOOST_COROUTINES_NO_DEPRECATION_WARNING=1
102 <toolset>gcc:<cxxflags>-std=c++11
103 <toolset>gcc:<cxxflags>-Wno-unused-parameter
104 <toolset>gcc:<cxxflags>-Wno-unused-variable # Temporary until we can figure out -isystem
105 <toolset>clang:<cxxflags>-std=c++11
106 <toolset>clang:<cxxflags>-Wno-unused-parameter
107 <toolset>clang:<cxxflags>-Wno-unused-variable # Temporary until we can figure out -isystem
108 <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS=1
109 <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS=1
110 <toolset>msvc:<cxxflags>"/wd4100 /wd4251 /bigobj"
111 <toolset>msvc:<variant>release:<cxxflags>"/Ob2 /Oi /Ot"
112 <os>LINUX:<define>_XOPEN_SOURCE=600
113 <os>LINUX:<define>_GNU_SOURCE=1
114 <os>SOLARIS:<define>_XOPEN_SOURCE=500
115 <os>SOLARIS:<define>__EXTENSIONS__
116 <os>SOLARIS:<library>socket
117 <os>SOLARIS:<library>nsl
118 <os>NT:<define>_WIN32_WINNT=0x0601
119 <os>NT,<toolset>cw:<library>ws2_32
120 <os>NT,<toolset>cw:<library>mswsock
121 <os>NT,<toolset>gcc:<library>ws2_32
122 <os>NT,<toolset>gcc:<library>mswsock
123 <os>NT,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS
130 build-project examples ;