]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: selftests: use -pthread instead of -lpthread
authorLei Yang <Lei.Yang@windriver.com>
Wed, 29 Aug 2018 07:04:08 +0000 (15:04 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Sep 2018 22:26:44 +0000 (00:26 +0200)
commit24ea75117cbce899d75ec029d17ebf432653f04f
treeeb143523a9edf980bf1cd969438377b240dfa3f0
parent57a3f6a07360aaa8448757b34b6c2937e9c20a1e
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 <Lei.Yang@windriver.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile