From 151a777ff7f122fc97daf1ab748249d8de934452 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 23 May 2007 03:54:20 +0000 Subject: On Solaris 10, define NO_WEAK_PTHREADS for the build. When that symbol is defined, skip the weak and conditional references in k5-thread.h and always use the real pthread functions. ticket: 5560 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19556 dc483132-0cff-0310-8789-dd5450dbe970 --- src/aclocal.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/aclocal.m4') diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 2f02c5fe71..50715e5ebe 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -207,12 +207,21 @@ if test "$enable_thread_support" = yes; then # don't exclude CFLAGS when linking. *sigh* PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L" ;; + solaris2.[1-9]) + # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't + # get the right result. XXX What about Solaris 9 and earlier? + if test "$GCC" = yes ; then + PTHREAD_CFLAGS="-D_REENTRANT -pthreads" + fi + ;; solaris*) # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't # get the right result. if test "$GCC" = yes ; then PTHREAD_CFLAGS="-D_REENTRANT -pthreads" fi + # On Solaris 10, the thread support is always available in libc. + AC_DEFINE(NO_WEAK_PTHREADS,1,[Define if references to pthread routines should be non-weak.]) ;; esac THREAD_SUPPORT=1 -- cgit