Re: [Boost-bugs] [Boost C++ Libraries] #5315: address-model and architecture should be reflected in library naming

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5315: address-model and architecture should be reflected in library naming
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-30 17:21:15


#5315: address-model and architecture should be reflected in library naming
-------------------------------+----------------------------
  Reporter: boost@… | Owner:
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: Building Boost
   Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------------

Comment (by boost@…):

 Hello!
 [[BR]]
 After all the years there is some progress here:
 [[BR]]
 using --buildid= on the b2 commandline it is now possible to generate
 libraries and dlls with different names.
 The only missing link is to support buildid in the autolink process.[[BR]]
 I therefor suppose to support a new (optional) variable BOOST_LIB_BUILDID
 and change the autolink coding in
 auto_link.hpp:


 {{{
 ...
 #elif defined(BOOST_AUTO_LINK_NOMANGLE)
 # pragma comment(lib, BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib")
 # ifdef BOOST_LIB_DIAGNOSTIC
 # pragma message ("Linking to lib file: "
 BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib")
 # endif
>> Add this >>
 #elif defined(BOOST_LIB_BUILDID)
 # 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 "-" BOOST_LIB_BUILDID ".lib")
 # ifdef BOOST_LIB_DIAGNOSTIC
 # 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 "-" BOOST_LIB_BUILDID ".lib")
 # endif
 << Add this <<
 #else
 # 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")
 # ifdef BOOST_LIB_DIAGNOSTIC
 # 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")
 # endif
 #endif
 ...
 }}}

 [[BR]]
 This is all optional and will not break any existing behavior.
 [[BR]]
 Best regards[[BR]]
 Sönke Schau

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5315#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC