From c7211ac8d4203925467fd86060026de3f36140a7 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 6 Oct 2004 01:10:09 +0000 Subject: [PATCH] * 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 --- src/ChangeLog | 6 ++++++ src/aclocal.m4 | 6 ++++++ 2 files changed, 12 insertions(+) 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 -- 2.26.2