<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/136255>136255</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [OpenMP] Linking uses a `libomptarget` with very narrow version tag
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          KaruroChori
      </td>
    </tr>
</table>

<pre>
    Compiling some [demo code](https://godbolt.org/z/5oqE4Es6q) with
```bash
clang++ main.cpp -fopenmp -g -fopenmp-targets=amd64-linux-unknown
```
and checking the linked libraries results in these two entries related to OpenMP:
- `libomp.so`
- `libomptarget.so.21.0git`

The second is using a specific version tag which is quite bad for portability. 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxcUk2PmzAQ_TXmMgIZg0k4cEg2y6Wt2kP_gIEBpmts1mM23f76iiRqVytZ8scbz7x58wwzTQ6xEfos9CUxW5x9aL6YsAX_NPtASeeH9-bJLytZchOwXxCEPg-4eOj9gEJfhDrOMa4sipNQrVDt5IfO25j5MAnV_hGq1f71uXzm6lWoGq4UZyFPopL31Rne7701bhLqLNQZFkMu69cV0tGv6JYV0unfOY0mTBhZFBezDFWZWnLb73RzL85f3cfMQp6MG6CfsX_Z2ccZwZJ7wQEsdcEEQoaAvNnIQG7HGSFePaCLD9CaiANED99XdN9-7E3KUwqikpY6v6wZ-3ulD293ghn7TOWZnCjeI4Q8_ZwRGHvvBiCGjXdWBnjFnkbq4Q0Dk3cQzQTXmfp5j3rdKCJ0ZoDRB1h9iKYjS_E9g2RoiqEuapNgkx_KstaFPNbJ3ByLGnWl8GCKXHW5NAdtzNjrw3E86GM1JtQoqbQs86PUea7qrBzliHWpikOZH_uuF6XExZDNrH1b9lEmxLxhkxeV0jqxpkPLN-Mo5fAKN1QotfsoNPuntNsmFqW0xJH_p4kU7c1xD0H1Bb6Su81nY2Qwn3UUlbx5ZlfnHZwJwV8_KpVswTafHEhx3rqs94tQ7V75saVr8L-wj0K1N74sVPto6K1RfwMAAP__ywv98w">