tools/virtio: compile with -pthread
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 20 Mar 2022 11:02:14 +0000 (07:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:57:25 +0000 (09:57 +0200)
commitb6f7efb9221ba5c6e66e3dba74b5c34c31ac81b6
tree1cec96d3cec830d026ea0a6ffffb24d316309ee2
parent87c54a0b64752c09f4e4e13e4959d66495fba227
tools/virtio: compile with -pthread

[ Upstream commit f03560a57c1f60db6ac23ffd9714e1c69e2f95c7 ]

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: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/virtio/Makefile