[llvm-bugs] [Bug 25534] New: Build breaks on OpenBSD when linking shared libs

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 15 01:21:17 PST 2015


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

            Bug ID: 25534
           Summary: Build breaks on OpenBSD when linking shared libs
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: OpenBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: sisnkemp at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

When linking libLTO.so, the build aborts, complaining about undefined
references to assert2, cxa_exit, etc.

The solution is not not use the -z,defs option when building a shared library
on OpenBSD. This is option is also avoided on FreeBSD, Darwin, Win32 or Cygwin.
A diff to make the build go through on OpenBSD is given at:
http://reviews.llvm.org/D14236

Linking explictly against libc does not work for the reasons described here:
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151102/309783.html

-- 
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/20151115/8a392c4e/attachment.html>


More information about the llvm-bugs mailing list