tools/virtio: compile with -pthread
stable inclusion from stable-v5.10.118 commit 3663d6023aa2198f7d3eb55cc7797b1f9fff7659 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5L686 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3663d6023aa2198f7d3eb55cc7797b1f9fff7659 -------------------------------- [ Upstream commit f03560a5 ] When using pthreads, one has to compile and link with -lpthread, otherwise e.g. glibc is not guaranteed to be reentrant. This replaces -lpthread. Reported-by: NMatthew Wilcox <willy@infradead.org> Signed-off-by: NMichael S. Tsirkin <mst@redhat.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录