From acb4e8dd8745da5e5457bee8c8af0dbbebe1a7e7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 25 Jun 2003 22:41:58 +0000 Subject: [PATCH] try to handle pthread better --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 87e12ef9c..f5e4e17c0 100644 --- a/configure.ac +++ b/configure.ac @@ -162,13 +162,13 @@ fi if test "x$ac_cv_header_pthread_h" = "xyes"; then save_ldflags="$LDFLAGS" - LDFLAGS="$LDFLAGS -pthread" + LDFLAGS="$LDFLAGS -lpthread" AC_TRY_LINK( [#include ], [pthread_attr_t type; pthread_attr_setstacksize(&type, 0x100000);], - [PTHREAD_LDFLAGS=-pthread], - [PTHREAD_LDFLAGS=-lpthread] + [PTHREAD_LDFLAGS=-lpthread], + [PTHREAD_LDFLAGS=-pthread] ) LDFLAGS="$save_ldflags" PTHREAD_CFLAGS=-D_REENTRANT