summaryrefslogtreecommitdiff
path: root/boehm-gc/configure.ac
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-15 13:51:07 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-15 13:51:07 +0000
commitd2f4c25adf9483a3ca4afc50bc214f9f39bfbdfe (patch)
tree7f012594d5ce869901a6beffedc25b7dbeb8a408 /boehm-gc/configure.ac
parentd18e0d532faa080531c89a983717f5fec4ef6a08 (diff)
downloadgcc-d2f4c25adf9483a3ca4afc50bc214f9f39bfbdfe.tar.gz
* configure.ac (*-*-solaris2.8*): Only usr alternate thread
library on Solaris 8. (*-*-solaris2*): Use regular thread library otherwise. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160787 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/configure.ac')
-rw-r--r--boehm-gc/configure.ac12
1 files changed, 10 insertions, 2 deletions
diff --git a/boehm-gc/configure.ac b/boehm-gc/configure.ac
index 363263ec277..32c627524a7 100644
--- a/boehm-gc/configure.ac
+++ b/boehm-gc/configure.ac
@@ -1,4 +1,5 @@
-# Copyright (c) 1999, 2000, 2001, 2002, 2003, 2006 by Red Hat, Inc. All rights reserved.
+# Copyright (c) 1999, 2000, 2001, 2002, 2003, 2006, 2010 by Red Hat, Inc.
+# All rights reserved.
# Copyright 2004 Nathanael Nerode
#
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
@@ -179,7 +180,7 @@ case "$THREADS" in
AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
THREADLIBS=-pthread
;;
- *-*-solaris*)
+ *-*-solaris2.8*)
AC_DEFINE(GC_SOLARIS_PTHREADS,1,[support for Solaris pthreads])
# Need to use alternate thread library, otherwise gctest hangs
# on Solaris 8.
@@ -187,6 +188,13 @@ case "$THREADS" in
THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
-R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
;;
+ *-*-solaris2*)
+ AC_DEFINE(GC_SOLARIS_PTHREADS,1,[support for Solaris pthreads])
+ # The alternate thread library was only introduced in Solaris 8 and
+ # became the default in Solaris 9, so no need for the special code
+ # above otherwise.
+ THREADLIBS=-lpthread
+ ;;
*-*-irix*)
AC_DEFINE(GC_IRIX_THREADS,1,[support for Irix pthreads])
;;