Skip to content

Commit

Permalink
configure.ac: Fix pthread linking on FreeBSD.
Browse files Browse the repository at this point in the history
The configure script checks for the existence of pthread_sigmask.
However, on FreeBSD, libc contains no-op stubs for many of the
pthread_* functions.  As a result, the AC_SEARCH_LIBS macro returns
"none required".

As an alternative to checking pthread_sigmask, a solution is to check
pthread_create.

Signed-off-by: Kevin Lo <kevlo@FreeBSD.org>
Acked-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
  • Loading branch information
Kevin Lo authored and blp committed Apr 20, 2015
1 parent 96660ed commit 513a32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,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_sigmask], [pthread])
AC_SEARCH_LIBS([pthread_create], [pthread])
AC_FUNC_STRERROR_R

OVS_CHECK_ESX
Expand Down

0 comments on commit 513a32e

Please sign in to comment.