kvm: selftests: use -pthread instead of -lpthread
authorLei Yang <[email protected]>
Wed, 29 Aug 2018 07:04:08 +0000 (15:04 +0800)
committerPaolo Bonzini <[email protected]>
Wed, 19 Sep 2018 22:26:44 +0000 (00:26 +0200)
commit6bd317d3c865ebcddcb287a424093fe4758c40ef
treeeb143523a9edf980bf1cd969438377b240dfa3f0
parent83b20b28c670868bfb717be4fe1557c925a81657
kvm: selftests: use -pthread instead of -lpthread

I run into the following error

testing/selftests/kvm/dirty_log_test.c:285: undefined reference to `pthread_create'
testing/selftests/kvm/dirty_log_test.c:297: undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status

my gcc version is gcc version 4.8.4
"-pthread" would work everywhere

Signed-off-by: Lei Yang <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
tools/testing/selftests/kvm/Makefile