python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / protobuf / 0001-configure.ac-check-if-libatomic-is-needed.patch
blobfffdf49facf8082b40135bd2e49ada462fa44293
1 From f020fe05a20dfcd16cd7df833dcf3cdeef770538 Mon Sep 17 00:00:00 2001
2 From: Carlos Santos <casantos@datacom.ind.br>
3 Date: Thu, 11 Feb 2016 10:58:35 -0200
4 Subject: [PATCH 2/2] configure.ac: check if libatomic is needed
6 Compilation of protobuf for PowerPC and SPARC may fail due to missing
7 references to __atomic_fetch_add_4 and __atomic_compare_exchange_4.
9 The __atomic_*() intrinsics for all sizes are provided by libatomic when
10 gcc is >= 4.8. This can be achieved by adding this to configure.ac:
12 AC_SEARCH_LIBS([__atomic_fetch_add_4], [atomic])
14 Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
15 ---
16 configure.ac | 2 ++
17 1 file changed, 2 insertions(+)
19 diff --git a/configure.ac b/configure.ac
20 index c07067c..88d4a0d 100644
21 --- a/configure.ac
22 +++ b/configure.ac
23 @@ -160,6 +160,8 @@ AM_CONDITIONAL([HAVE_PTHREAD], [test "x$acx_pthread_ok" = "xyes"])
24 # We still keep this for improving pbconfig.h for unsupported platforms.
25 AC_CXX_STL_HASH
27 +AC_SEARCH_LIBS([__atomic_load_4], [atomic])
29 case "$target_os" in
30 mingw* | cygwin* | win*)
32 --
33 2.5.0