Subject: Re: bug#22959: Emacs on Windows depends on libwinpthreads

From: Fabrice Popineau <[email-masked]>
Date: Tue, 19 Apr 2016 09:26:55 +0200

2016-04-18 21:02 GMT+02:00 Eli Zaretskii <[email-masked]>:

> > From: Fabrice Popineau <[email-masked]>
> > Date: Mon, 18 Apr 2016 15:41:59 +0200
> > Cc: Eli Zaretskii <[email-masked]>, [email-masked]
> >
> > Add this:
> >
> > diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site
> > index 05034fe..0063c2b 100644
> > --- a/nt/mingw-cfg.site
> > +++ b/nt/mingw-cfg.site
> > @@ -40,6 +40,12 @@ gl_cv_sys_struct_timespec_in_pthread_h=no
> > # Or at all...
> > ac_cv_header_pthread_h=no
> > +# We don't want to check for these functions
> > +# because they are implemented in libwinpthread.
> > +ac_cv_search_clock_gettime="none required"
> > +ac_cv_func_clock_gettime=no
> > +ac_cv_func_clock_settime=no
> > +
> > # ACL functions are implemented in w32.c
> > ac_cv_search_acl_get_file="none required"
> > ac_cv_func_acl_get_file=yes
> >
> > And the dependency towards libwinpthread is gone for MinGW64.
>
> I'm okay with pushing this to master.
>

BTW, libwinpthread _is not_ GPL.
Sources can be found here
https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-libraries/winpthreads/
You only need to redistribute the COPYING file.

Fabrice