[gnutls-devel] GnuTLS | configure.ac: check if libatomic is needed (!878)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Jan 17 13:27:29 CET 2019

New Merge Request !878


Project:Branches: ffontaine/gnutls:master to gnutls/gnutls:master
Author:    Fabrice Fontaine

gnutls source code uses the C++11 atomic functionality since
which internally is implemented using the __atomic_*() gcc built-ins

On certain architectures, the `__atomic_*()` built-ins are implemented in
the libatomic library that comes with the rest of the gcc runtime. Due
to this, code using <atomic> might need to link against libatomic,
otherwise one hits build issues such as:

../lib/.libs/libgnutls.so: undefined reference to `__atomic_fetch_sub_4'

on an architecture like SPARC.

To solve this, a configure.ac check is added to know if we need to
link against libatomic or not. The library is also added to gnutls.pc.

 - http://autobuild.buildroot.org/results/6c749bd592ceffeacadd2ab570d127936cce64b2
 - http://autobuild.buildroot.org/results/30aa83d3cf3482af8a59250c196c85f4a278d343

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/878
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190117/c355b2c2/attachment.html>

More information about the Gnutls-devel mailing list