Actions
Bug #787
closedDCMTK 3.6.2 compilation fails when creating static binaries due to libxml2 dependency
Status:
WontFix
Priority:
Normal
Assignee:
Jan Schlamelcher
Category:
Configuration
Target version:
-
Start date:
2017-07-26
Due date:
% Done:
50%
Estimated time:
Module:
config
Operating System:
Compiler:
Description
Compilation of DCMTK 3.6.2 static binaries on Linux, i.e. with LDFLAGS = -static
, fails when libxml2 support is enabled.
Apparently libxml2 depends on liblzma, so XMLLIBS = -lxml2 -llzma
is needed instead of the current XMLLIBS = -lxml2
.
For some reasone, this does not cause compile errors when libxml2 is dynamically linked.
Since libxml2 can (as far as I know) be compiled without lzma support, the preferrable solution would be to add
a configure test for the presence of liblzma. If the library is found, -llzma should be added to XMLLIBS.
Actions