mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-11 13:21:10 +00:00
try to handle pthread better
This commit is contained in:
parent
1d32ff04e6
commit
acb4e8dd87
1 changed files with 3 additions and 3 deletions
|
@ -162,13 +162,13 @@ fi
|
||||||
|
|
||||||
if test "x$ac_cv_header_pthread_h" = "xyes"; then
|
if test "x$ac_cv_header_pthread_h" = "xyes"; then
|
||||||
save_ldflags="$LDFLAGS"
|
save_ldflags="$LDFLAGS"
|
||||||
LDFLAGS="$LDFLAGS -pthread"
|
LDFLAGS="$LDFLAGS -lpthread"
|
||||||
AC_TRY_LINK(
|
AC_TRY_LINK(
|
||||||
[#include <pthread.h>],
|
[#include <pthread.h>],
|
||||||
[pthread_attr_t type;
|
[pthread_attr_t type;
|
||||||
pthread_attr_setstacksize(&type, 0x100000);],
|
pthread_attr_setstacksize(&type, 0x100000);],
|
||||||
[PTHREAD_LDFLAGS=-pthread],
|
[PTHREAD_LDFLAGS=-lpthread],
|
||||||
[PTHREAD_LDFLAGS=-lpthread]
|
[PTHREAD_LDFLAGS=-pthread]
|
||||||
)
|
)
|
||||||
LDFLAGS="$save_ldflags"
|
LDFLAGS="$save_ldflags"
|
||||||
PTHREAD_CFLAGS=-D_REENTRANT
|
PTHREAD_CFLAGS=-D_REENTRANT
|
||||||
|
|
Loading…
Reference in a new issue