
John Maddock wrote:
As reported previously, --build-type=complete does not work if ICU is also configured. The below patch makes build process suppress building static Boost.Regex in this case. The wording is as follows:
ghost@wind:~/Work/Boost/boost-svn$ bjam link=static runtime-link=static --with-regex .... warning: when using ICU, Boost.Regex must be a dynamic library warning: forcing link=shared runtime-link=shared for Boost.Regex Note: Building Boost.Regex with Unicode/ICU support enabled Using ICU in /usr/include
Note that the warning is printed before the message that we're using ICU, which is ugly, but what I have is a minimal change. I'll tweak those configuration messages for 1.41. Comments? Ok for release branch?
Does this disable building for link=static runtime-link=dynamic ? It looks like it does, but this configuration is OK, it's just the runtime that must be shared for things to work correctly.
Hmm, from the <link>shared requirement for all ICU targets I concluded that it's the ICU libraries that are always shared. If you are saying that even while they are shared, it's OK to have static regex link to shared ICU, provided shared runtime is used, I can tweak the logic to force shared runtime only. - Volodya