examples/kni: fix build with pkg-config
authorDavid Marchand <david.marchand@redhat.com>
Sat, 14 Nov 2020 09:05:25 +0000 (10:05 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 15 Nov 2020 14:29:23 +0000 (15:29 +0100)
commit58a0648bd33c3cb7ff6e746c639e0613fda4b9b0
tree0abcb4119f8b3f907bea402f3dc2a5940848bbf4
parent13db2494e8aa2ee08c486eca3ab430ab6b1ee17a
examples/kni: fix build with pkg-config

rm -f build/kni build/kni-static build/kni-shared
test -d build && rmdir -p build || true
[...]
/usr/bin/ld: /tmp/cc72ssnK.o: undefined reference to symbol
'pthread_join@@GLIBC_2.2.5'

This example explicitly call pthread API and should be linked against
the pthread library.

Fixes: 724beb913b44 ("examples/kni: monitor and update link state continually")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
examples/kni/Makefile