[PATCH] makedumpfile: Fix a compile error on Debian with pthread
Jiang Wang
jiang.wang at bytedance.com
Sat Jan 30 13:49:20 EST 2021
From: "jiang.wang" <jiang.wang at bytedance.com>
On Debian 10, make reports errors about undefined reference to
`pthread_rwlock_tryrdlock'. To fix it, put ldw before lpthread
in the Makefile.
Signed-off-by: Jiang Wang <jiang.wang at bytedance.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index cb6bd42..010d447 100644
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,7 @@ endif
CFLAGS += -DUSESNAPPY
endif
-LIBS := -lpthread $(LIBS)
+LIBS := $(LIBS) -lpthread
try-run = $(shell set -e; \
TMP=".$$$$.tmp"; \
--
2.11.0
More information about the kexec
mailing list