[pcre-dev] [Bug 1681] CMake compiles PCRE dynamically even w…

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumptes vells: [pcre-dev] [Bug 1681] New: CMake compiles PCRE dynamically even when set to static
Assumpte: [pcre-dev] [Bug 1681] CMake compiles PCRE dynamically even when set to static
https://bugs.exim.org/show_bug.cgi?id=1681

Orvid King <blah38621@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blah38621@???


--- Comment #6 from Orvid King <blah38621@???> ---
TLDR; This needs an additional option to be added to the CMake build to enable
this behavior, and it should be off by default.

Unconditionally doing this for anyone building PCRE as a static library is
wrong. It is perfectly valid to compile a static library against the dynamic
runtime. By doing this unconditionally, you force anyone who wants to build
PCRE as a static library (perhaps with link-time code-gen enabled, or simply to
avoid the extra dll) to build their entire application against the static
runtime. You cannot mix the static and dynamic runtimes in the same
application, and you cannot have two copies of the static runtime in the same
application, which is why the vast majority of libraries, even if they build as
static libraries, link against the dynamic runtime.

--
You are receiving this mail because:
You are on the CC list for the bug.