From: Ken Raeburn Date: Wed, 6 Oct 2004 01:10:09 +0000 (+0000) Subject: * aclocal.m4 (KRB5_AC_ENABLE_THREADS): On HP-UX, define some preprocessor X-Git-Tag: krb5-1.4-beta1~35 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c7211ac8d4203925467fd86060026de3f36140a7;p=krb5.git * 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 --- diff --git a/src/ChangeLog b/src/ChangeLog index d333e864b..4b5653f7c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2004-10-05 Ken Raeburn + + * 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. + 2004-09-24 Tom Yu * configure.in: Update to get RELTAIL from patchlevel.h as well. 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