summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/pthreads.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/pthreads.m4 b/m4/pthreads.m4
index c35d697e9..65d3a9756 100644
--- a/m4/pthreads.m4
+++ b/m4/pthreads.m4
@@ -22,7 +22,7 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [
*-darwin*) PTHREAD_CFLAGS="" ;;
*-solaris*)
# Handle Studio compiler
- CC_CHECK_CFLAGS([-mt], [PTHREAD_CFLAGS="-mt -D_REENTRANT"], [PTHREAD_CFLAGS="-D_REENTRANT"]);;
+ CC_CHECK_CFLAGS([-mt], [PTHREAD_CFLAGS="-mt"]);;
*) PTHREAD_CFLAGS="-pthread" ;;
esac
fi
@@ -31,8 +31,8 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [
*-hpux11*) PTHREAD_LIBS="-lpthread" ;;
*-darwin*) PTHREAD_LIBS="" ;;
*-solaris*)
- # Handle Studio compiler
- CC_CHECK_CFLAGS([-mt], [PTHREAD_LIBS="-lpthread -lposix4 -lrt"], [PTHREAD_LIBS="-lpthread -lposix4 -lrt"]);;
+ # Use the same libraries for gcc and sun studio cc
+ PTHREAD_LIBS="-lpthread -lposix4 -lrt";;
*) PTHREAD_LIBS="-pthread" ;;
esac
fi