[PATCH libgcrypt] Add support for IBM z/OS

Sachin T sachin.t at ibm.com
Wed Dec 3 07:39:48 CET 2025


Hello,

Thanks. I tested your configure.ac change on z/OS and it configures and builds cleanly here. No objection to the change

Thanks
Sachin

From: NIIBE Yutaka <gniibe at fsij.org>
Date: Wednesday, 3 December 2025 at 8:28 AM
To: Sachin T <sachin.t at ibm.com>
Cc: GNU Libgcrypt Development <gnupg-devel at gnupg.org>
Subject: [EXTERNAL] RE: [PATCH libgcrypt] Add support for IBM z/OS

NIIBE Yutaka <gniibe at fsij.org> wrote:
> Let me have some time for configure.ac.

Attached is a patch for the change of configure.ac.  If no objection,
I'll push this change to master.

It includes your changes (except the one for the EXTRA_LIBS_FOR_BUILD).

Please note that the detection of -lpthread is a bit complicated.  On
z/OS, IIUC, no -lpthread is required *and* it should not be added to the
compiler option.  On GNU/Linux, it is not required any more (with newer
glibc), but it is still OK to have -lpthread option.

Here, libgcrypt only needs to know if pthread API is available or not.
For actual linking, it uses GPG_ERROR_MT_LIBS (see tests/Makefile.am).

GPG_ERROR_MT_LIBS is from libgpg-error and it is libgpg-error which
checks pthread API more deeply and pthread linking at its build time.
It uses libgpg-error/m4/threadlib.m4 from gnulib.
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20251203/84da39ee/attachment.html>


More information about the Gnupg-devel mailing list