|
Boost : |
Subject: [boost] autolinking
From: James Mansion (james_at_[hidden])
Date: 2009-02-17 16:15:15
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
-
-
-
-
-
-
-
-
-
-
-
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk