[lldb-dev] [Bug 35053] New: lldb-server fails to link on linux - undefined reference to 'pthread_atfork'
via lldb-dev
lldb-dev at lists.llvm.org
Tue Oct 24 02:59:30 PDT 2017
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 at lists.llvm.org
Reporter: sylvestre at debian.org
CC: labath at google.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20171024/a7d21561/attachment.html>
More information about the lldb-dev
mailing list