<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 --- - No way to specify the location of libunwind's library file"
   href="https://llvm.org/bugs/show_bug.cgi?id=27876">27876</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>No way to specify the location of libunwind's library file
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++abi
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>zhanglei.april@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16416" name="attach_16416" title="patch to cmake script">attachment 16416</a> <a href="attachment.cgi?id=16416&action=edit" title="patch to cmake script">[details]</a></span>
patch to cmake script

This issue is observed while doing out-of-tree build on Linux.

There is a cmake variable LIBCXXABI_LIBUNWIND_PATH for specifying the path of
libunwind's headers, but not any for the path of libunwind's library file. As a
result, you have to include this path via CMAKE_SHARED_LINKER_FLAGS or similar.

This could be trivially fixed by introducing a new variable
LIBCXXABI_LIBUNWIND_LIBRARY_PATH. A possible fix is attached.


Lei</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>