Ticket #8638: boost_trunk_address_model.2.patch
File boost_trunk_address_model.2.patch, 4.8 KB (added by , 9 years ago) |
---|
-
boost/config/auto_link.hpp
15 15 USAGE: 16 16 ~~~~~~ 17 17 18 Before including this header you must define one or more of definethe following macros:18 Before including this header you must define one or more of the following macros: 19 19 20 20 BOOST_LIB_NAME: Required: A string containing the basename of the library, 21 21 for example boost_regex. … … 41 41 42 42 BOOST_LIB_PREFIX 43 43 + BOOST_LIB_NAME 44 + " _"44 + "-" 45 45 + BOOST_LIB_TOOLSET 46 46 + BOOST_LIB_THREAD_OPT 47 47 + BOOST_LIB_RT_OPT 48 + BOOST_LIB_ADDR_OPT 48 49 "-" 49 50 + BOOST_LIB_VERSION 50 51 … … 69 70 p STLport build. 70 71 n STLport build without its IOStreams. 71 72 73 BOOST_LIB_ADDR_OPT: The address model: "-32" or "-64". 74 72 75 BOOST_LIB_VERSION: The Boost version, in the form x_y, for Boost version x.y. 73 76 74 77 … … 193 196 # define BOOST_LIB_THREAD_OPT 194 197 #endif 195 198 199 // 200 // select runtime opt: 201 // 196 202 #if defined(_MSC_VER) || defined(__MWERKS__) 197 203 198 204 # ifdef _DLL … … 352 358 #endif 353 359 354 360 // 361 // select address model opt: 362 // 363 #if defined(__x86_64__) || defined(__x86_64) \ 364 || defined(__amd64__) || defined(__amd64) \ 365 || defined(_M_X64) || defined(_M_AMD64) \ 366 || defined(_M_IA64) 367 # define BOOST_LIB_ADDR_OPT "-64" 368 #else 369 # define BOOST_LIB_ADDR_OPT "-32" 370 #endif 371 372 // 355 373 // select linkage opt: 356 374 // 357 375 #if (defined(_DLL) || defined(_RTLDLL)) && defined(BOOST_DYN_LINK) … … 370 388 && defined(BOOST_LIB_TOOLSET) \ 371 389 && defined(BOOST_LIB_THREAD_OPT) \ 372 390 && defined(BOOST_LIB_RT_OPT) \ 391 && defined(BOOST_LIB_ADDR_OPT) \ 373 392 && defined(BOOST_LIB_VERSION) 374 393 375 394 #ifdef BOOST_AUTO_LINK_TAGGED 376 # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib")395 # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT BOOST_LIB_ADDR_OPT ".lib") 377 396 # ifdef BOOST_LIB_DIAGNOSTIC 378 # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib")397 # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT BOOST_LIB_ADDR_OPT ".lib") 379 398 # endif 380 399 #elif defined(BOOST_AUTO_LINK_NOMANGLE) 381 400 # pragma comment(lib, BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") … … 383 402 # pragma message ("Linking to lib file: " BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") 384 403 # endif 385 404 #else 386 # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib")405 # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT BOOST_LIB_ADDR_OPT "-" BOOST_LIB_VERSION ".lib") 387 406 # ifdef BOOST_LIB_DIAGNOSTIC 388 # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib")407 # pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT BOOST_LIB_ADDR_OPT "-" BOOST_LIB_VERSION ".lib") 389 408 # endif 390 409 #endif 391 410 … … 405 424 #if defined(BOOST_LIB_NAME) 406 425 # undef BOOST_LIB_NAME 407 426 #endif 408 // Don't undef this one: it can be set by the user and should be the 427 // Don't undef this one: it can be set by the user and should be the 409 428 // same for all libraries: 410 429 //#if defined(BOOST_LIB_TOOLSET) 411 430 //# undef BOOST_LIB_TOOLSET … … 416 435 #if defined(BOOST_LIB_RT_OPT) 417 436 # undef BOOST_LIB_RT_OPT 418 437 #endif 438 #if defined(BOOST_LIB_ADDR_OPT) 439 # undef BOOST_LIB_ADDR_OPT 440 #endif 419 441 #if defined(BOOST_LIB_LINK_OPT) 420 442 # undef BOOST_LIB_LINK_OPT 421 443 #endif … … 426 448 # undef BOOST_DYN_LINK 427 449 #endif 428 450 429 -
boostcpp.jam
122 122 if $(layout) = versioned 123 123 { 124 124 result = [ common.format-name 125 <base> <toolset> <threading> <runtime> -$(BOOST_VERSION_TAG)125 <base> <toolset> <threading> <runtime> <address-model> -$(BOOST_VERSION_TAG) 126 126 -$(BUILD_ID) 127 127 : $(name) : $(type) : $(property-set) ] ; 128 128 } … … 129 129 else if $(layout) = tagged 130 130 { 131 131 result = [ common.format-name 132 <base> <threading> <runtime> 132 <base> <threading> <runtime> <address-model> 133 133 -$(BUILD_ID) 134 134 : $(name) : $(type) : $(property-set) ] ; 135 135 }