[Bug 35053] New: lldb-server fails to link on linux - undefined reference to 'pthread_atfork'

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 sylvestre@debian.org
CC labath@google.com, llvm-bugs@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

labath@google.com changed bug 35053