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: unassignedb...@nondot.org
          Reporter: vinc...@rischmann.fr
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to