<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-ranlib, llvm-nm, llvm-ar"
   href="https://bugs.llvm.org/show_bug.cgi?id=36856">36856</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-ranlib, llvm-nm, llvm-ar
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Documentation
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0
          </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>General docs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dilyan.palauzov@aegee.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>gcc-ar/gcc-nm/gcc-ranlib compared to ar/nm/ranlib provide an implicit --plugin
argument, so that the former can work with LTO objects, even when the gcc-lto
plugin is not in {libdir}/bfd-plugins.

Do llvm-ar, llvm-ranlib and llvm-nm also imply a --plugin argument, compared to
ar/ranlib/nm concerning LTO?

How should libraries be portably build with LTO?  Shall ./configure detect,
whether clang or gcc is used, and then substitute AR with llvm-ar or gcc-ar,
until llvm starts installing  LLVMgold.so under {libdir}/bfd-plugins ?

Also <a href="https://llvm.org/docs/LinkTimeOptimization.html">https://llvm.org/docs/LinkTimeOptimization.html</a> does not say anything
about llvm-ar/llvm-nm/llvm-ranlib, only on
<a href="https://clang.llvm.org/docs/ThinLTO.html">https://clang.llvm.org/docs/ThinLTO.html</a> they are decently mentioned.   At the
same time under <a href="https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html">https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html</a> gcc-ar
and gcc-ranlib are mentioned.

Finally, if two different versions of clang are installed on a system, lets'
say first clang5 is installed and then clang6. Then the install process creates
only one LLVMgold.so, which is overwriten by the second installation.  Will
then llvm-ar use that newer LLVMgold.so, even if the object file was compiled
with clang-6.0.  I do not know how gcc-ar acts in this regard, but at least the
different lto-plugins per gcc version coexist on the system in different
directories.</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>