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

Páxina inicial
Borrar esta mensaxe
Autor: admin
Data:  
Para: pcre-dev
Temas antigos: [pcre-dev] [Bug 1681] New: CMake compiles PCRE dynamically even when set to static
Asunto: [pcre-dev] [Bug 1681] CMake compiles PCRE dynamically even when set to static
https://bugs.exim.org/show_bug.cgi?id=1681

--- Comment #9 from Orvid King <blah38621@???> ---
The issue is that it's perfectly reasonable to want a static build linked
against the dynamic runtime.

Basically, the issue is that these are all perfectly valid:

.lib /MT
.lib /MD
.dll /MD
.exe /MT
.exe /MD

The .lib /MD combination is what most static libraries on Windows are built
with, because it doesn't force you to statically link the entire application.
The .lib /MD combination is also the combination that this patch makes
impossible without modifying the CMake file. The .lib /MD combination is also
what the default should be when compiling as a static library, as it is very
very rare to make any significantly sized application that is able to be fully
statically linked.

Basically there just needs to be a distinction between building a static lib
vs. building against the static runtime.

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