selftests: pidfd: Fix undefined reference to pthread_create()
authorShuah Khan <skhan@linuxfoundation.org>
Tue, 24 Sep 2019 19:52:37 +0000 (13:52 -0600)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 30 Sep 2019 20:32:55 +0000 (22:32 +0200)
commit3969e76909d3aa06715997896184ee684f68d164
tree67df037000b701066d813c6b4aedb73fbee8f172
parent61129dd29f7962f278b618a2a3e8fdb986a66dc8
selftests: pidfd: Fix undefined reference to pthread_create()

Fix build failure:

undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status

Fix CFLAGS to include pthread correctly.

Fixes: 740378dc7834 ("pidfd: add polling selftests")
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Reviewed-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20190924195237.30519-1-skhan@linuxfoundation.org
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
tools/testing/selftests/pidfd/Makefile