Ticket #6537: boost auto_link ticket6537.patch
File boost auto_link ticket6537.patch, 7.4 KB (added by , 11 years ago) |
---|
-
auto_link.hpp
60 60 61 61 BOOST_LIB_RT_OPT: A suffix that indicates the runtime library used, 62 62 contains one or more of the following letters after 63 a h iphen:63 a hyphen: 64 64 65 65 s static runtime (dynamic if not present). 66 66 g debug/diagnostic runtime (release if not present). 67 67 y Python debug/diagnostic runtime (release if not present). 68 68 d debug build (release if not present). 69 g debug/diagnostic runtime (release if not present).70 p STLPort Build.69 p STLport build. 70 n STLport build without its IOStreams. 71 71 72 72 BOOST_LIB_VERSION: The Boost version, in the form x_y, for Boost version x.y. 73 73 … … 114 114 // select toolset if not defined already: 115 115 // 116 116 #ifndef BOOST_LIB_TOOLSET 117 // Note: no compilers before 1200 are supported 118 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) 117 # if defined(BOOST_MSVC) && (BOOST_MSVC < 1200) 118 // Note: no compilers before 1200 are supported 119 # elif defined(BOOST_MSVC) && (BOOST_MSVC < 1300) 119 120 120 # ifdef UNDER_CE121 // vc6:122 # define BOOST_LIB_TOOLSET "evc4"123 # else124 // vc6:125 # define BOOST_LIB_TOOLSET "vc6"126 # endif121 # ifdef UNDER_CE 122 // eVC4: 123 # define BOOST_LIB_TOOLSET "evc4" 124 # else 125 // vc6: 126 # define BOOST_LIB_TOOLSET "vc6" 127 # endif 127 128 128 # elif defined(BOOST_MSVC) && (BOOST_MSVC == 1300)129 # elif defined(BOOST_MSVC) && (BOOST_MSVC < 1310) 129 130 130 // vc7:131 # define BOOST_LIB_TOOLSET "vc7"131 // vc7: 132 # define BOOST_LIB_TOOLSET "vc7" 132 133 133 # elif defined(BOOST_MSVC) && (BOOST_MSVC == 1310)134 # elif defined(BOOST_MSVC) && (BOOST_MSVC < 1400) 134 135 135 // vc71:136 # define BOOST_LIB_TOOLSET "vc71"136 // vc71: 137 # define BOOST_LIB_TOOLSET "vc71" 137 138 138 # elif defined(BOOST_MSVC) && (BOOST_MSVC == 1400)139 # elif defined(BOOST_MSVC) && (BOOST_MSVC < 1500) 139 140 140 // vc80:141 # define BOOST_LIB_TOOLSET "vc80"141 // vc80: 142 # define BOOST_LIB_TOOLSET "vc80" 142 143 143 # elif defined(BOOST_MSVC) && (BOOST_MSVC == 1500)144 # elif defined(BOOST_MSVC) && (BOOST_MSVC < 1600) 144 145 145 // vc90:146 # define BOOST_LIB_TOOLSET "vc90"146 // vc90: 147 # define BOOST_LIB_TOOLSET "vc90" 147 148 148 # elif defined(BOOST_MSVC) && (BOOST_MSVC == 1600)149 # elif defined(BOOST_MSVC) && (BOOST_MSVC < 1700) 149 150 150 // vc10:151 # define BOOST_LIB_TOOLSET "vc100"151 // vc10: 152 # define BOOST_LIB_TOOLSET "vc100" 152 153 153 # elif defined(BOOST_MSVC) && (BOOST_MSVC >= 1700)154 # elif defined(BOOST_MSVC) 154 155 155 // vc11:156 # define BOOST_LIB_TOOLSET "vc110"156 // vc11: 157 # define BOOST_LIB_TOOLSET "vc110" 157 158 158 # elif defined(__BORLANDC__)159 # elif defined(__BORLANDC__) 159 160 160 // CBuilder 6:161 # define BOOST_LIB_TOOLSET "bcb"161 // CBuilder 6: 162 # define BOOST_LIB_TOOLSET "bcb" 162 163 163 # elif defined(__ICL)164 # elif defined(__ICL) 164 165 165 // Intel C++, no version number:166 # define BOOST_LIB_TOOLSET "iw"166 // Intel C++, no version number: 167 # define BOOST_LIB_TOOLSET "iw" 167 168 168 # elif defined(__MWERKS__) && (__MWERKS__ <= 0x31FF )169 # elif defined(__MWERKS__) && (__MWERKS__ <= 0x31FF ) 169 170 170 // Metrowerks CodeWarrior 8.x171 # define BOOST_LIB_TOOLSET "cw8"171 // Metrowerks CodeWarrior 8.x 172 # define BOOST_LIB_TOOLSET "cw8" 172 173 173 # elif defined(__MWERKS__) && (__MWERKS__ <= 0x32FF )174 # elif defined(__MWERKS__) && (__MWERKS__ <= 0x32FF ) 174 175 175 // Metrowerks CodeWarrior 9.x176 # define BOOST_LIB_TOOLSET "cw9"176 // Metrowerks CodeWarrior 9.x 177 # define BOOST_LIB_TOOLSET "cw9" 177 178 178 # endif179 # endif 179 180 #endif // BOOST_LIB_TOOLSET 180 181 181 182 // … … 201 202 # elif defined(_DEBUG)\ 202 203 && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) 203 204 # define BOOST_LIB_RT_OPT "-gydp" 204 # pragma message("warning: STL Port debug versions are built with /D_STLP_DEBUG=1")205 # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") 205 206 # error "Build options aren't compatible with pre-built libraries" 206 207 # elif defined(_DEBUG) 207 208 # define BOOST_LIB_RT_OPT "-gdp" 208 # pragma message("warning: STL Port debug versions are built with /D_STLP_DEBUG=1")209 # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") 209 210 # error "Build options aren't compatible with pre-built libraries" 210 211 # else 211 212 # define BOOST_LIB_RT_OPT "-p" … … 221 222 # elif defined(_DEBUG)\ 222 223 && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) 223 224 # define BOOST_LIB_RT_OPT "-gydpn" 224 # pragma message("warning: STL Port debug versions are built with /D_STLP_DEBUG=1")225 # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") 225 226 # error "Build options aren't compatible with pre-built libraries" 226 227 # elif defined(_DEBUG) 227 228 # define BOOST_LIB_RT_OPT "-gdpn" 228 # pragma message("warning: STL Port debug versions are built with /D_STLP_DEBUG=1")229 # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") 229 230 # error "Build options aren't compatible with pre-built libraries" 230 231 # else 231 232 # define BOOST_LIB_RT_OPT "-pn" … … 255 256 # elif defined(_DEBUG)\ 256 257 && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) 257 258 # define BOOST_LIB_RT_OPT "-sgydp" 258 # pragma message("warning: STL Port debug versions are built with /D_STLP_DEBUG=1")259 # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") 259 260 # error "Build options aren't compatible with pre-built libraries" 260 261 # elif defined(_DEBUG) 261 262 # define BOOST_LIB_RT_OPT "-sgdp" 262 # pragma message("warning: STL Port debug versions are built with /D_STLP_DEBUG=1")263 # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") 263 264 # error "Build options aren't compatible with pre-built libraries" 264 265 # else 265 266 # define BOOST_LIB_RT_OPT "-sp" … … 275 276 # elif defined(_DEBUG)\ 276 277 && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) 277 278 # define BOOST_LIB_RT_OPT "-sgydpn" 278 # pragma message("warning: STL Port debug versions are built with /D_STLP_DEBUG=1")279 # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") 279 280 # error "Build options aren't compatible with pre-built libraries" 280 281 # elif defined(_DEBUG) 281 282 # define BOOST_LIB_RT_OPT "-sgdpn" 282 # pragma message("warning: STL Port debug versions are built with /D_STLP_DEBUG=1")283 # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") 283 284 # error "Build options aren't compatible with pre-built libraries" 284 285 # else 285 286 # define BOOST_LIB_RT_OPT "-spn" … … 312 313 // sanity check: 313 314 // 314 315 #if defined(__STL_DEBUG) || defined(_STLP_DEBUG) 315 #error "Pre-built versions of the Boost libraries are not provided in STL Port-debug form"316 #error "Pre-built versions of the Boost libraries are not provided in STLport-debug form" 316 317 #endif 317 318 318 319 # ifdef _RTLDLL