diff options
author | Ken Raeburn <raeburn@mit.edu> | 2007-05-23 03:54:20 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2007-05-23 03:54:20 +0000 |
commit | 151a777ff7f122fc97daf1ab748249d8de934452 (patch) | |
tree | 8f7c23ff470c832b8729f3d2db2ed2502dcc51ba /src/aclocal.m4 | |
parent | 13c36bdf38a15239618036435646c89c02ff503c (diff) | |
download | krb5-151a777ff7f122fc97daf1ab748249d8de934452.tar.gz krb5-151a777ff7f122fc97daf1ab748249d8de934452.tar.xz krb5-151a777ff7f122fc97daf1ab748249d8de934452.zip |
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
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r-- | src/aclocal.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
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 |