<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - llvm-config: provide versioned symlinks"
   href="https://bugs.llvm.org/show_bug.cgi?id=41794">41794</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-config: provide versioned symlinks
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>gerion.entrup@flump.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When installing LLVM it provides a binary llvm-config in the bin directory. Can
you also add a symlink to llvm-config-VERSION like e.g. clang also has? As an
example if someone wants to install LLVM 8, then a symlink llvm-config-8 is
created together with llvm-config.

The background of this is the possibility to handle multiple installed LLVM
versions as done by different Linux distributions. Currently, most
distributions patch the installation, permit only installation of one LLVM, or
install in a way that only one llvm-config tool is usable:

Debian:
The LLVM bin directory is installed to /usr/bin. llvm-config is patched to
llvm-config-VERSION to avoid conflicts.

Gentoo:
LLVM is installed to /usr/lib/llvm/VERSION/ and all bin directories are added
to PATH. So only the first llvm-config is found, when typing llvm-config.

Arch:
Allow only one LLVM installation (although multiple LLVM libraries can be
installed together).

Further related bug reports:
<a href="https://github.com/mesonbuild/meson/issues/5370">https://github.com/mesonbuild/meson/issues/5370</a>
<a href="https://bugs.gentoo.org/677504">https://bugs.gentoo.org/677504</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>