
I'd like to build a boost subset using my own build system. I'd like to turn off autolinking and control the names of the libraries, but it seems I can't. Is that intentional? I tried to use BOOST_AUTO_LINK_NOMANGLE as a starting point but setting that only helped for the first inclusion of auto_link.hpp, since it undefines it. Can I offer this trivial patch, or at least suggest something similar? Index: include/boost/config/auto_link.hpp =================================================================== --- include/boost/config/auto_link.hpp (.../ref/boost) (revision 758) +++ include/boost/config/auto_link.hpp (.../src/boost) (revision 758) @@ -304,6 +304,9 @@ && defined(BOOST_LIB_RT_OPT) \ && defined(BOOST_LIB_VERSION) +// JGM: provide global disable for autolink of Boost libraries. +#if !defined(BOOST_NO_AUTOLINK) + #ifndef BOOST_AUTO_LINK_NOMANGLE # 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 @@ -316,6 +319,8 @@ # endif #endif +#endif // !BOOST_NO_AUTOLINK + #else # error "some required macros where not defined (internal logic error)." #endif @@ -355,14 +360,3 @@ #if defined(BOOST_AUTO_LINK_NOMANGLE) # undef BOOST_AUTO_LINK_NOMANGLE #endif - - - - - - - - - - -

AMDG James Mansion wrote:
I'd like to build a boost subset using my own build system.
I'd like to turn off autolinking and control the names of the libraries, but it seems I can't. Is that intentional?
I tried to use BOOST_AUTO_LINK_NOMANGLE as a starting point but setting that only helped for the first inclusion of auto_link.hpp, since it undefines it.
Can I offer this trivial patch, or at least suggest something similar?
You can disable autolinking with BOOST_ALL_NO_LIB In Christ, Steven Watanabe
participants (2)
-
James Mansion
-
Steven Watanabe