diff options
author | Ken Raeburn <raeburn@mit.edu> | 2004-10-06 01:10:09 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2004-10-06 01:10:09 +0000 |
commit | c7211ac8d4203925467fd86060026de3f36140a7 (patch) | |
tree | 8882fbef5632aebd33fb763751a0ab884614ac54 /src/aclocal.m4 | |
parent | f70538f7c00c458c87c3f33c6c2c53aa0e9ad0bf (diff) | |
download | krb5-c7211ac8d4203925467fd86060026de3f36140a7.tar.gz krb5-c7211ac8d4203925467fd86060026de3f36140a7.tar.xz krb5-c7211ac8d4203925467fd86060026de3f36140a7.zip |
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): On HP-UX, define some preprocessor
symbols that -pthread defines, but don't use -pthread so we can avoid forcing
linking against pthread libraries.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16806 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r-- | src/aclocal.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4 index a9e775294..a060ac94f 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -159,6 +159,12 @@ if test "$enable_thread_support" = yes; then PTHREAD_LIBS= PTHREAD_CFLAGS= ;; + hpux*) + # These are the flags that "gcc -pthread" adds. But we don't + # want "-pthread" because that has link-time effects, and we + # don't exclude CFLAGS when linking. *sigh* + CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L" + ;; esac fi dnl We want to know where these routines live, so on systems with weak |