<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/151830>151830</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
How to statically link everything?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nullfs
</td>
</tr>
</table>
<pre>
The [Building a Distribution of LLVM](https://llvm.org/docs/BuildingADistribution.html) guide mentions that:
> The guidance for maximizing performance of the generated compiler is to use LTO, PGO, and statically link everything.
What options besides `LLVM_STATIC_LINK_CXX_STDLIB` would allow me to build a fully statically-linked version of clang and other LLVM tools?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0Ustu2zAQ_BrqsohBUaJsHXiI47oN6j6AGG1uBiWuJbYUafBh1_36goqDtIcCBBbgLmdmhyND0INFFISvCd8UMsXReWGTMcdQdE5dxX5EIHy9TtoobQeQsNEhet2lqJ0Fd4Td7tsnwjeErcYYT4FU94RtCdsac54Wzg-EbZXrA2HbV5D7vyEWY5wMYS0MSSuECW2-DRBHGTMWnU_1DrKSPCNtj3B0Hib5S0_6d1Z1Qn90fppb7ggxj6JFLyMq6N100gY96ADRQQoIu_0Xwh7g6_u5SKsgRBl1L425gtH2J-AZ_TWO2g6LFwnfRxnBnV7EdRi0wgCkoXn9w9P-fv_4cNg9fv54eHh-PjztN7vHNWkoXFwyCqQx7gITZv4uuwASjimTvfHeZV5UcEYfbtb2RmbLrQIXR_Sz1RCdM4FU20KJSrVVKwsU5ZLXJedN0xajWC2bvq1lrfqu5rRmFa1USVetrCtWKt4VWjDKOF1RVi7Zsm4XDcW6qepV15Rtz5eM1BQnqc3i9Q8LHUJCUfJyVdHCyA5NmEPDmMULzF3CWM6QF_nRXZeGQGpqdIjhDSbqaFB8cJdsxP8tz9slb8S_gRp0HFO36N10S9et3J28-4F9JGw7C8lRuyk9C_YnAAD__51y9FA">