$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Boost.Locale on Windows not building with runtime-link=static
From: Thomas Ziegenhagen (thomas_at_[hidden])
Date: 2015-09-23 06:49:12
Thank you both, stathis and John John Maddock.
I did not open a new ticket. I instead realized that the only thing from  
locale I'm actively using is the gettext, so I simply isolated and  
shortened the code to my needs. Gets rid of ~30MB of dependencies, avoids  
the hilariously complex process of building boost.locale with ICU support,  
AND finally allows me to link the runtime statically. It also avoids the  
laughable /dir/to/the.moon/LC_MESSAGE/file.mo directory structure, and  
last but not least it removes all the locale stuff creeping into global  
state and suddenly reformatting numbers in an XML file, for example. What  
a mess.
Thanks again. Issue solved.
Bye, Thomas
Am 18.09.2015, 19:19 Uhr, schrieb John Maddock <jz.maddock_at_[hidden]>:
>
>> So this is a bug in the build files? Is there a simple quickfix I can  
>> apply to my local installation to be able to carry on? Should I open an  
>> issue in Trac?
>>
>
> I had a quick look, and both regex and locale have this issue - and it's  
> the same one - once you tell them to use ICU, they insist on  
> runtime-link=dynamic.  That's because last time I checked, that's the  
> only build configuration ICU supports by default.  Plus it's actually  
> bloody hard to correctly configure ICU usage (not helped by ICU  
> continually changing their library names!).
>
> So.... by all means open a Trac issue, but don't hold your breath (at  
> least as far as regex is concerned).
>
> I think the quickest and easiest way around this is to treat those two  
> libraries as just a bunch of source files, and build them directly from  
> your IDE - this presupposes that you have an ICU build that also uses  
> the static runtime.
>
> HTH, John.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://listarchives.boost.org/mailman/listinfo.cgi/boost-users