buildroot/package/gnutls
Fabrice Fontaine d2f606a646 gnutls: fix build on sparc
gnutls source code uses the C++11 <atomic> functionality since
7978a73346,
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.

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Tested-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-01-28 16:54:59 +01:00
..
0001-configure.ac-check-if-libatomic-is-needed.patch gnutls: fix build on sparc 2019-01-28 16:54:59 +01:00
Config.in Revert "gnutls: drop wchar dependency" 2018-06-30 18:41:41 +02:00
gnutls.hash gnutls: bump to version 3.6.5 2019-01-16 20:34:56 +01:00
gnutls.mk gnutls: fix build on sparc 2019-01-28 16:54:59 +01:00