[31482] in CVS-changelog-for-Kerberos-V5
krb5 commit: On HP-UX, use -mt for thread support
daemon@ATHENA.MIT.EDU (ghudson@mit.edu)
Thu Oct 23 17:36:53 2025
From: ghudson@mit.edu
To: cvs-krb5@mit.edu
Message-Id: <20251023213648.5EB24104166@krbdev.mit.edu>
Date: Thu, 23 Oct 2025 17:36:48 -0400 (EDT)
MIME-Version: 1.0
Reply-To: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
https://github.com/krb5/krb5/commit/0415c857d320347bbd7ab33bde677b977387d940
commit 0415c857d320347bbd7ab33bde677b977387d940
Author: Michael Osipov <michael.osipov@innomotics.com>
Date: Wed Sep 17 12:38:40 2025 +0200
On HP-UX, use -mt for thread support
In aclocal.m4, do not override the result of AX_PTHREAD for HP-UX; the
overrides do not work for building the C++ programs in the tests.
Just use "-mt" and avoid weak pthreads references on that platform.
[ghudson@mit.edu: edited comment and commit message]
src/aclocal.m4 | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 7397bdcc2..bd75a8d73 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -188,10 +188,9 @@ if test "$enable_thread_support" = yes; then
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*
- PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
+ # On HP-UX, thread support is always available with the '-mt'
+ # compiler and linker flag.
+ AC_DEFINE(NO_WEAK_PTHREADS,1,[Define if references to pthread routines should be non-weak.])
;;
solaris2.[[1-9]])
# On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5