mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
qnx doesn't need any pthread flags when linking
This commit is contained in:
parent
43f68ba10c
commit
60cb2a7494
1 changed files with 13 additions and 8 deletions
|
@ -173,7 +173,10 @@ fi
|
|||
|
||||
if test "x$ac_cv_header_pthread_h" = "xyes"; then
|
||||
save_ldflags="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -lpthread"
|
||||
case "$host_os" in
|
||||
*qnx*) dnl qnx have all pthread* functions in the libc.
|
||||
;;
|
||||
*) LDFLAGS="$LDFLAGS -lpthread"
|
||||
AC_TRY_LINK(
|
||||
[#include <pthread.h>],
|
||||
[pthread_attr_t type;
|
||||
|
@ -181,6 +184,8 @@ if test "x$ac_cv_header_pthread_h" = "xyes"; then
|
|||
[PTHREAD_LDFLAGS=-lpthread],
|
||||
[PTHREAD_LDFLAGS=-pthread]
|
||||
)
|
||||
;;
|
||||
esac
|
||||
LDFLAGS="$save_ldflags"
|
||||
PTHREAD_CFLAGS=-D_REENTRANT
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue