mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Use -pthread instead of -lpthread on OpenBSD.
This commit is contained in:
parent
d88c09a033
commit
1ae2e46dd8
1 changed files with 10 additions and 0 deletions
|
@ -3,6 +3,16 @@ if test "x$ac_cv_header_pthread_h" = "xyes"; then
|
|||
case "$host_os" in
|
||||
*qnx*) dnl qnx have all pthread* functions in the libc.
|
||||
;;
|
||||
*openbsd*)
|
||||
LIBS="$LIBS -pthread"
|
||||
AC_TRY_LINK(
|
||||
[#include <pthread.h>],
|
||||
[pthread_attr_t type;
|
||||
pthread_attr_setstacksize(&type, 0x100000);],
|
||||
[PTHREAD_LDFLAGS=-pthread],
|
||||
[PTHREAD_LDFLAGS=-lpthread]
|
||||
)
|
||||
;;
|
||||
*) LIBS="$LIBS -lpthread"
|
||||
AC_TRY_LINK(
|
||||
[#include <pthread.h>],
|
||||
|
|
Loading…
Reference in a new issue