Commit b875592
committed
COMP: Pin DCMTK charset-conversion backend, disabling external iconv
DCMTK auto-detects an external libiconv and turns DCMTK_WITH_ICONV on when
one is found, which then runs an iconv try-compile during configure. In a
conda/pixi toolchain the conda iconv.h (which renames iconv -> libiconv) is
paired with the macOS SDK libiconv at link time, so the probe fails with
undefined _libiconv symbols and configure aborts.
ITK already selects the built-in oficonv backend
(DCMTK_ENABLE_BUILTIN_OFICONV_DATA), so the external-iconv probe is
redundant. Set DCMTK_WITH_ICONV=OFF explicitly in both the ICU and the
non-ICU branches so the backend is fixed by ITK rather than discovered from
whatever the build environment happens to provide.
Co-locate the three related options (DCMTK_ENABLE_BUILTIN_OFICONV_DATA,
DCMTK_WITH_ICU, DCMTK_WITH_ICONV) in CHARSET_CONVERSION_ARGS so their
interrelationship is visible in one place.1 parent ca88f7e commit b875592
1 file changed
Lines changed: 22 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
12 | 26 | | |
13 | 27 | | |
14 | 28 | | |
| |||
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 98 | + | |
91 | 99 | | |
92 | 100 | | |
93 | 101 | | |
| |||
109 | 117 | | |
110 | 118 | | |
111 | 119 | | |
112 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
113 | 127 | | |
114 | 128 | | |
115 | 129 | | |
| |||
480 | 494 | | |
481 | 495 | | |
482 | 496 | | |
483 | | - | |
484 | 497 | | |
485 | 498 | | |
486 | 499 | | |
| |||
0 commit comments