<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - lld missing linkage to libpthread (required for DragonFly)"
   href="https://llvm.org/bugs/show_bug.cgi?id=24360">24360</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lld missing linkage to libpthread (required for DragonFly)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>DragonFly BSD
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>draco@marino.st
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14691" name="attach_14691" title="patch to link libpthread with 5 lld libraries.">attachment 14691</a> <a href="attachment.cgi?id=14691&action=edit" title="patch to link libpthread with 5 lld libraries.">[details]</a></span>
patch to link libpthread with 5 lld libraries.

Starting with LLVM 3.7, LLD is built by default in FreeBSD ports which
DragonFly uses.  It did not build on DragonFly because the pthread_create
symbols could not be found.

The attached patch was required to get it to build (although I assume the fix
would be in a different form).  As DragonFly uses modern GNU binutils linkers
with their defaults, explicit linking is required on DragonFly.

Consider this a "problem report" the provides an illustratory fix.</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>