Skip to content

Commit 3969e76

Browse files
shuahkhChristian Brauner
authored andcommitted
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: 740378d ("pidfd: add polling selftests") Signed-off-by: Shuah Khan <[email protected]> Reviewed-by: Christian Brauner <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 61129dd commit 3969e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/pidfd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
CFLAGS += -g -I../../../../usr/include/ -lpthread
2+
CFLAGS += -g -I../../../../usr/include/ -pthread
33

44
TEST_GEN_PROGS := pidfd_test pidfd_open_test pidfd_poll_test pidfd_wait
55

0 commit comments

Comments
 (0)