<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/113696>113696</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`lld` prebuilt binary should come without libxml dynamic linking
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lld
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mering
</td>
</tr>
</table>
<pre>
In order to seamlessly run in as many Linux environments as possible, compiler toolchain binaries should have as little dynamic linking as possible.
`clang` recently got rid of the `libtinfo5` dependency.
`lld` still requires to find `libxml` on the system to run.
This especially leads to problems where a hermetic build environment is expected, like in Bazel build runners.
Would it be possible to get rid of this library or statically link against it (as libxml2 seems to be MIT licensed this shouldn't be a problem, right)?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckk1v4zwMhH-NfCEa2PJHkoMP7VsEKPDurcCeZYuxuaUlryin9f76hZz0ay_JQeOHnOEYERocYqvqB1U_ZmaJow_thIHckHXeru2TAx8sBogeBM3EKMIrhMUBOTACk3Er_E9ueQN0FwreTeiipKfZi1DHqPR_0PtpJt44nvvRkIOOnAmEAjL6hS2M5oLpM6YYGcGuzkzUA5N7ITd8Be5U_qjy-9tvk_ds3KCaHAL26CKvMPgIgSz4M8QRQTU5UxfJnX2ddBZndBZdv-4-IMw2PUkkZgj4e6GAkmyfydkb4W3ipPFuo8oqEackCYv7ttPzSAIoM_ZkmFdgNHZjzcF3jJPA64gBwcCIYcJIPXQLsf0aISTE24x9RJsSZHrBlPmD-YN8k4fFOQzybfbPLUyK0OFHYGn0gF8ioRRzF0xYwQeQaCL1103JvYAZDDmJCaL0YTtJsq5BMO0efWL_eHoGph6doL0Sr3d0Su-34ebdbdo-0DBGpY-qPGW2Le2xPJoM22Kvj4dmnxd1NrbnI-IBq7IyuunLMrf7rtB7bIomLxu9P2TU6lxXRa7roiqbWu9MU2Fed4eyOpoam4OqcpwM8Y75Mu18GDISWbAtirI5NhmbDlm2tmud7q11qn1ok_yuWwZRVc4kUT4BkSJj-9mPOWDKPl7ru76Xt_cTwivF0S_xFte_Dc6WwO0Y4yyqvFf6pPRpoDgu3a73k9KnNPL2dzcH_wv7qPRpMyBKn24eLq3-GwAA__9X8UAn">