Thanks, I applied this to master.

On Mon, Nov 19, 2018 at 11:40:23AM -0800, Yifeng Sun wrote:
> Thanks for the fix.
> 
> Tested-by: Yifeng Sun <[email protected]>
> Reviewed-by: Yifeng Sun <[email protected]>
> 
> On Thu, Nov 15, 2018 at 8:59 AM Ben Pfaff <[email protected]> wrote:
> 
> > On my laptop, pthread_create() is always available without -lpthread, but
> > when I use -fsanitize=address, -lpthread is required to pull in other
> > threading functions such as pthread_rwlock_tryrdlock().  Thus, with
> > -fsanitize=address I have to manually add -lpthread to link commands one
> > way or another.  This commit avoids that problem by checking for a
> > function that is sometimes only available in -lpthread.
> >
> > Signed-off-by: Ben Pfaff <[email protected]>
> > ---
> >  configure.ac | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/configure.ac b/configure.ac
> > index bb726f89e251..3e97a750c812 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -77,7 +77,7 @@ AC_SUBST([LT_AGE])
> >  AC_SEARCH_LIBS([pow], [m])
> >  AC_SEARCH_LIBS([clock_gettime], [rt])
> >  AC_SEARCH_LIBS([timer_create], [rt])
> > -AC_SEARCH_LIBS([pthread_create], [pthread])
> > +AC_SEARCH_LIBS([pthread_rwlock_tryrdlock], [pthread])
> >  AC_FUNC_STRERROR_R
> >
> >  OVS_CHECK_ESX
> > --
> > 2.16.1
> >
> > _______________________________________________
> > dev mailing list
> > [email protected]
> > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
> >
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to