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 <[email protected]>
Date: Wednesday, 3 December 2025 at 8:28 AM
To: Sachin T <[email protected]>
Cc: GNU Libgcrypt Development <[email protected]>
Subject: [EXTERNAL] RE: [PATCH libgcrypt] Add support for IBM z/OS

NIIBE Yutaka <[email protected]> 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.
--
_______________________________________________
Gnupg-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-devel

Reply via email to