Allow master to build on Fedora with the recent threading changes
authorBen Pfaff <blp@nicira.com>
Mon, 6 May 2013 22:41:29 +0000 (15:41 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 6 May 2013 22:41:29 +0000 (15:41 -0700)
The recent threading changes have broken the build on Fedora,
and presumably other Red Hat based distributions. This adds an explicit
"-lpthread" to the linker command line and allows the latest master to build
on Fedora. I've also tested this on Ubuntu and it builds fine there.

Signed-off-by: Kyle Mestery <kmestery@cisco.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ed Maste <emaste@freebsd.org>
configure.ac

index bbb6dea..fe3f9c7 100644 (file)
@@ -44,6 +44,7 @@ AC_SYS_LARGEFILE
 AC_SEARCH_LIBS([pow], [m])
 AC_SEARCH_LIBS([clock_gettime], [rt])
 AC_SEARCH_LIBS([timer_create], [rt])
+AC_SEARCH_LIBS([pthread_sigmask], [pthread])
 
 OVS_CHECK_ESX
 OVS_CHECK_COVERAGE