Commit 297f4bb7 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Zheng Zengkai
Browse files

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: default avatarMatthew Wilcox <willy@infradead.org>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent d201405b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment