[llvm-bugs] [Bug 50194] New: Wrong output of llvm-config --system-libs

via llvm-bugs llvm-bugs at lists.llvm.org
Sat May 1 16:32:03 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50194

            Bug ID: 50194
           Summary: Wrong output of llvm-config --system-libs
           Product: Build scripts
           Version: 11.0
          Hardware: PC
                OS: OpenBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: vincent at rischmann.fr
                CC: llvm-bugs at lists.llvm.org

Created attachment 24818
  --> https://bugs.llvm.org/attachment.cgi?id=24818&action=edit
cmake function patch

Hello,

I built LLVM 12 from the release/12.x branch on OpenBSD 6.9, the output of the
command `llvm-config --system-libs` is wrong, I get this:

    -lpthread -lm -lz.so.5.0 -lcurses.so.14.0

It should be this:

    -lpthread -lm -lz -lcurses

I've found that it can be fixed by changing the get_library_name cmake function
(https://github.com/llvm/llvm-project/blob/release/12.x/llvm/cmake/modules/GetLibraryName.cmake)
with the attached patch.

I don't know if this is the proper way to fix this, I've only been able to test
it on openbsd and linux.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210501/a93c4d72/attachment.html>


More information about the llvm-bugs mailing list