mirror of git://gcc.gnu.org/git/gcc.git
configure.ac (*-*-solaris2.8*): Only usr alternate thread library on Solaris 8.
* configure.ac (*-*-solaris2.8*): Only usr alternate thread library on Solaris 8. (*-*-solaris2*): Use regular thread library otherwise. * configure: Regenerate. From-SVN: r160787
This commit is contained in:
parent
e0774f1e3c
commit
8a86e76071
|
@ -1,3 +1,10 @@
|
||||||
|
2010-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* configure.ac (*-*-solaris2.8*): Only usr alternate thread
|
||||||
|
library on Solaris 8.
|
||||||
|
(*-*-solaris2*): Use regular thread library otherwise.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2010-05-13 Uros Bizjak <ubizjak@gmail.com>
|
2010-05-13 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
* tests/leak_test.c (main): Declare as int. Return 0.
|
* tests/leak_test.c (main): Declare as int. Return 0.
|
||||||
|
|
|
@ -14893,7 +14893,7 @@ $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
|
||||||
AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
|
AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
|
||||||
THREADLIBS=-pthread
|
THREADLIBS=-pthread
|
||||||
;;
|
;;
|
||||||
*-*-solaris*)
|
*-*-solaris2.8*)
|
||||||
|
|
||||||
$as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
|
$as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
|
||||||
|
|
||||||
|
@ -14903,6 +14903,15 @@ $as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
|
||||||
THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
|
THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
|
||||||
-R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
|
-R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
|
||||||
;;
|
;;
|
||||||
|
*-*-solaris2*)
|
||||||
|
|
||||||
|
$as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
|
||||||
|
|
||||||
|
# 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*)
|
*-*-irix*)
|
||||||
|
|
||||||
$as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
|
$as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
|
||||||
|
|
|
@ -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
|
# Copyright 2004 Nathanael Nerode
|
||||||
#
|
#
|
||||||
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
|
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
|
||||||
|
@ -179,7 +180,7 @@ case "$THREADS" in
|
||||||
AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
|
AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
|
||||||
THREADLIBS=-pthread
|
THREADLIBS=-pthread
|
||||||
;;
|
;;
|
||||||
*-*-solaris*)
|
*-*-solaris2.8*)
|
||||||
AC_DEFINE(GC_SOLARIS_PTHREADS,1,[support for Solaris pthreads])
|
AC_DEFINE(GC_SOLARIS_PTHREADS,1,[support for Solaris pthreads])
|
||||||
# Need to use alternate thread library, otherwise gctest hangs
|
# Need to use alternate thread library, otherwise gctest hangs
|
||||||
# on Solaris 8.
|
# on Solaris 8.
|
||||||
|
@ -187,6 +188,13 @@ case "$THREADS" in
|
||||||
THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
|
THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
|
||||||
-R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
|
-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*)
|
*-*-irix*)
|
||||||
AC_DEFINE(GC_IRIX_THREADS,1,[support for Irix pthreads])
|
AC_DEFINE(GC_IRIX_THREADS,1,[support for Irix pthreads])
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue