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

Jiang Wang . jiang.wang at bytedance.com
Mon Feb 1 12:00:40 EST 2021


Awesome, thanks!

On Sun, Jan 31, 2021 at 5:42 PM HAGIO KAZUHITO(萩尾 一仁)
<k-hagio-ab at nec.com> wrote:
>
> -----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