Patch for boost ticket #4349 (https://svn.boost.org/trac/boost/ticket/4349)
|
|
|
|
| 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 hiphen: |
| | 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 | |
| … |
… |
|
| 118 | 118 | #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) |
| 119 | 119 | |
| 120 | 120 | # ifdef UNDER_CE |
| 121 | | // vc6: |
| | 121 | // eVC4: |
| 122 | 122 | # define BOOST_LIB_TOOLSET "evc4" |
| 123 | 123 | # else |
| 124 | 124 | // vc6: |
| … |
… |
|
| 195 | 195 | # define BOOST_LIB_RT_OPT "-gdp" |
| 196 | 196 | # elif defined(_DEBUG)\ |
| 197 | 197 | && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) |
| 198 | | # define BOOST_LIB_RT_OPT "-gydp" |
| 199 | | # pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1") |
| 200 | | # error "Build options aren't compatible with pre-built libraries" |
| | 198 | # define BOOST_LIB_RT_OPT "-ydp" |
| | 199 | # ifdef BOOST_LIB_DIAGNOSTIC |
| | 200 | # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG by default") |
| | 201 | # endif |
| 201 | 202 | # elif defined(_DEBUG) |
| 202 | | # define BOOST_LIB_RT_OPT "-gdp" |
| 203 | | # pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1") |
| 204 | | # error "Build options aren't compatible with pre-built libraries" |
| | 203 | # define BOOST_LIB_RT_OPT "-dp" |
| | 204 | # ifdef BOOST_LIB_DIAGNOSTIC |
| | 205 | # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG by default") |
| | 206 | # endif |
| 205 | 207 | # else |
| 206 | 208 | # define BOOST_LIB_RT_OPT "-p" |
| 207 | 209 | # endif |
| … |
… |
|
| 215 | 217 | # define BOOST_LIB_RT_OPT "-gdpn" |
| 216 | 218 | # elif defined(_DEBUG)\ |
| 217 | 219 | && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) |
| 218 | | # define BOOST_LIB_RT_OPT "-gydpn" |
| 219 | | # pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1") |
| 220 | | # error "Build options aren't compatible with pre-built libraries" |
| | 220 | # define BOOST_LIB_RT_OPT "-ydpn" |
| | 221 | # ifdef BOOST_LIB_DIAGNOSTIC |
| | 222 | # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG by default") |
| | 223 | # endif |
| 221 | 224 | # elif defined(_DEBUG) |
| 222 | | # define BOOST_LIB_RT_OPT "-gdpn" |
| 223 | | # pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1") |
| 224 | | # error "Build options aren't compatible with pre-built libraries" |
| | 225 | # define BOOST_LIB_RT_OPT "-dpn" |
| | 226 | # ifdef BOOST_LIB_DIAGNOSTIC |
| | 227 | # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG by default") |
| | 228 | # endif |
| 225 | 229 | # else |
| 226 | 230 | # define BOOST_LIB_RT_OPT "-pn" |
| 227 | 231 | # endif |
| … |
… |
|
| 229 | 233 | # else |
| 230 | 234 | |
| 231 | 235 | # if defined(_DEBUG) && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) |
| 232 | | # define BOOST_LIB_RT_OPT "-gyd" |
| | 236 | # define BOOST_LIB_RT_OPT "-yd" |
| 233 | 237 | # elif defined(_DEBUG) |
| 234 | | # define BOOST_LIB_RT_OPT "-gd" |
| | 238 | # define BOOST_LIB_RT_OPT "-d" |
| 235 | 239 | # else |
| 236 | 240 | # define BOOST_LIB_RT_OPT |
| 237 | 241 | # endif |
| … |
… |
|
| 249 | 253 | # define BOOST_LIB_RT_OPT "-sgdp" |
| 250 | 254 | # elif defined(_DEBUG)\ |
| 251 | 255 | && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) |
| 252 | | # define BOOST_LIB_RT_OPT "-sgydp" |
| 253 | | # pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1") |
| 254 | | # error "Build options aren't compatible with pre-built libraries" |
| | 256 | # define BOOST_LIB_RT_OPT "-sydp" |
| | 257 | # ifdef BOOST_LIB_DIAGNOSTIC |
| | 258 | # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG by default") |
| | 259 | # endif |
| 255 | 260 | # elif defined(_DEBUG) |
| 256 | | # define BOOST_LIB_RT_OPT "-sgdp" |
| 257 | | # pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1") |
| 258 | | # error "Build options aren't compatible with pre-built libraries" |
| | 261 | # define BOOST_LIB_RT_OPT "-sdp" |
| | 262 | # ifdef BOOST_LIB_DIAGNOSTIC |
| | 263 | # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG by default") |
| | 264 | # endif |
| 259 | 265 | # else |
| 260 | 266 | # define BOOST_LIB_RT_OPT "-sp" |
| 261 | 267 | # endif |
| … |
… |
|
| 269 | 275 | # define BOOST_LIB_RT_OPT "-sgdpn" |
| 270 | 276 | # elif defined(_DEBUG)\ |
| 271 | 277 | && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) |
| 272 | | # define BOOST_LIB_RT_OPT "-sgydpn" |
| 273 | | # pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1") |
| 274 | | # error "Build options aren't compatible with pre-built libraries" |
| | 278 | # define BOOST_LIB_RT_OPT "-sydpn" |
| | 279 | # ifdef BOOST_LIB_DIAGNOSTIC |
| | 280 | # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG by default") |
| | 281 | # endif |
| 275 | 282 | # elif defined(_DEBUG) |
| 276 | | # define BOOST_LIB_RT_OPT "-sgdpn" |
| 277 | | # pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1") |
| 278 | | # error "Build options aren't compatible with pre-built libraries" |
| | 283 | # define BOOST_LIB_RT_OPT "-sdpn" |
| | 284 | # ifdef BOOST_LIB_DIAGNOSTIC |
| | 285 | # pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG by default") |
| | 286 | # endif |
| 279 | 287 | # else |
| 280 | 288 | # define BOOST_LIB_RT_OPT "-spn" |
| 281 | 289 | # endif |
| … |
… |
|
| 284 | 292 | |
| 285 | 293 | # if defined(_DEBUG)\ |
| 286 | 294 | && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) |
| 287 | | # define BOOST_LIB_RT_OPT "-sgyd" |
| | 295 | # define BOOST_LIB_RT_OPT "-syd" |
| 288 | 296 | # elif defined(_DEBUG) |
| 289 | | # define BOOST_LIB_RT_OPT "-sgd" |
| | 297 | # define BOOST_LIB_RT_OPT "-sd" |
| 290 | 298 | # else |
| 291 | 299 | # define BOOST_LIB_RT_OPT "-s" |
| 292 | 300 | # endif |
| … |
… |
|
| 307 | 315 | // sanity check: |
| 308 | 316 | // |
| 309 | 317 | #if defined(__STL_DEBUG) || defined(_STLP_DEBUG) |
| 310 | | #error "Pre-built versions of the Boost libraries are not provided in STLPort-debug form" |
| | 318 | #error "Pre-built versions of the Boost libraries are not provided in STLport-debug form" |
| 311 | 319 | #endif |
| 312 | 320 | |
| 313 | 321 | # ifdef _RTLDLL |