summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2019-09-24 13:52:37 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-11 18:36:10 +0200
commitdb5d311b024613364b1a424a5796df642c2e4046 (patch)
treeb9865d4af3ea81acf919e839a4d61335fef0daab /tools/testing
parent25d1ad2cc9ea717961b121bb1ba366c1a36230a8 (diff)
downloadlinux-stable-db5d311b024613364b1a424a5796df642c2e4046.tar.gz
linux-stable-db5d311b024613364b1a424a5796df642c2e4046.tar.bz2
linux-stable-db5d311b024613364b1a424a5796df642c2e4046.zip
selftests: pidfd: Fix undefined reference to pthread_create()
commit 3969e76909d3aa06715997896184ee684f68d164 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/pidfd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/pidfd/Makefile b/tools/testing/selftests/pidfd/Makefile
index 720b2d884b3c..e86141796444 100644
--- a/tools/testing/selftests/pidfd/Makefile
+++ b/tools/testing/selftests/pidfd/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
-CFLAGS += -g -I../../../../usr/include/ -lpthread
+CFLAGS += -g -I../../../../usr/include/ -pthread
TEST_GEN_PROGS := pidfd_test pidfd_open_test