[PATCH] makedumpfile: Fix a compile error on Debian with pthread

HAGIO KAZUHITO(萩尾 一仁) k-hagio-ab at nec.com
Sun Jan 31 20:42:54 EST 2021


-----Original Message-----
> 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

Thanks for the patch, applied.
https://github.com/makedumpfile/makedumpfile/commit/01b4bd354c4a845c160d14487a93270cd1e22031

Kazu




More information about the kexec mailing list