[PATCH libgcrypt] Add support for IBM z/OS
NIIBE Yutaka
gniibe at fsij.org
Wed Dec 3 03:58:41 CET 2025
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 --------------
A non-text attachment was scrubbed...
Name: 0001-build-Add-support-for-IBM-z-OS-fixing-lpthread-check.patch
Type: text/x-diff
Size: 2537 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20251203/111749f0/attachment.patch>
More information about the Gnupg-devel
mailing list