projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61129dd
)
selftests: pidfd: Fix undefined reference to pthread_create()
author
Shuah Khan
<
[email protected]
>
Tue, 24 Sep 2019 19:52:37 +0000
(13:52 -0600)
committer
Christian Brauner
<
[email protected]
>
Mon, 30 Sep 2019 20:32:55 +0000
(22:32 +0200)
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 <
[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]
>
tools/testing/selftests/pidfd/Makefile
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/pidfd/Makefile
b/tools/testing/selftests/pidfd/Makefile
index 464c9b76148f1538643fd512e35461f327ea1249..7550f08822a3345290e2c780517c0b7cc373d43d 100644
(file)
--- 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/ -
l
pthread
+CFLAGS += -g -I../../../../usr/include/ -pthread
TEST_GEN_PROGS := pidfd_test pidfd_open_test pidfd_poll_test pidfd_wait