<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 - Install LLVMgold.so into {libdir}/bfd-plugins by default"
   href="https://bugs.llvm.org/show_bug.cgi?id=36802">36802</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Install LLVMgold.so into {libdir}/bfd-plugins by default
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>lto
          </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>As of 6.0, cmake compiles LLVMgold.so and puts it into {libdir}.

Doing "./configure && make install" for binutils, teaches ranlib, ar and nm to
scan by default {libdir}/bfd-plugins alphabetically and the first plugin, that
claims the object is used.

For the LTO primetime to arise, doing everywhere just "./configure && make
install" or the alternative cmake process, shall provide reasonable defaults. 
In the concrete case, ar/nm/ranlib by default search in
/usr/local/lib/bfd-plugins , so llvm's `make install` shall put there
LLVMgold.so, unless asked to do something else.

Currently users detect in autoconf if they will do LTO, then switch
ar/nm/ranlib to gcc-ar/gcc-nm/gcc-ranlib in order to avoid dealing with the
--plugin and because they are unaware of the bfd-plugin directory.  This is
unacceptable.  This of course does not work, if gcc is not installed on the
system, but ar/ranlib/nm would work when the plugins are properly installed.

For GCC I filled the same request at
<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84934">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84934</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>