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

            Bug ID: 35053
           Summary: lldb-server fails to link on linux  - undefined
                    reference to 'pthread_atfork'
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev@lists.llvm.org
          Reporter: sylves...@debian.org
                CC: lab...@google.com, llvm-b...@lists.llvm.org

Seems to be caused by r316368

../../../../lib/liblldbUtility.a(Log.cpp.o):Log.cpp:function
lldb_private::Log::Initialize(): error: undefined reference to 'pthread_atfork'

adding the -lpthread after the list of static libs fixed the issue.

Building with -DLLVM_LINK_LLVM_DYLIB=ON & -DLLVM_BUILD_LLVM_DYLIB=ON

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to