tools/virtio: compile with -pthread
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 20 Mar 2022 11:02:14 +0000 (07:02 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 28 Mar 2022 20:52:59 +0000 (16:52 -0400)
commitf03560a57c1f60db6ac23ffd9714e1c69e2f95c7
treef39538af7642ebd4b7435821e46f6a3b85345367
parent06f05bc52269e1f8286ce0fba03b565528fb1456
tools/virtio: compile with -pthread

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>
tools/virtio/Makefile