mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 16:02:57 +00:00
Fix build failure:
undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
Fix CFLAGS to include pthread correctly.
Fixes: 740378dc78 ("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]>
8 lines
182 B
Makefile
8 lines
182 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
CFLAGS += -g -I../../../../usr/include/ -pthread
|
|
|
|
TEST_GEN_PROGS := pidfd_test pidfd_open_test pidfd_poll_test pidfd_wait
|
|
|
|
include ../lib.mk
|
|
|