diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-11-18 16:46:29 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2020-01-30 18:33:45 -0800 |
commit | 189ba6b49974934d0aa7b1d77996570b7a65b1a9 (patch) | |
tree | 397aa2223a53512faaf834fb9524e70eb58a0ad3 /meta-networking/recipes-devtools | |
parent | 9abf13774ee370824445f122211aec2a56da5643 (diff) | |
download | meta-openembedded-189ba6b49974934d0aa7b1d77996570b7a65b1a9.tar.gz |
grpc: Link with libatomic on clang/x86
clang does delegate the atomic<double> calls to libatomic on x86 where
as gcc tries to use intrinsics, its debatable who is right, but it does
seem that clang is safe in case pointer is unaligned
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit f7a7a2aafe87437aefca21612dc156fde645ac89)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking/recipes-devtools')
-rw-r--r-- | meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb b/meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb index 8d54dbeff..c11b55669 100644 --- a/meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb +++ b/meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb | |||
@@ -44,6 +44,10 @@ do_configure_prepend_mipsarch() { | |||
44 | sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt | 44 | sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt |
45 | } | 45 | } |
46 | 46 | ||
47 | do_configure_prepend_toolchain-clang_x86() { | ||
48 | sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt | ||
49 | } | ||
50 | |||
47 | BBCLASSEXTEND = "native nativesdk" | 51 | BBCLASSEXTEND = "native nativesdk" |
48 | 52 | ||
49 | SYSROOT_DIRS_BLACKLIST_append_class-target = "${baselib}/cmake/grpc" | 53 | SYSROOT_DIRS_BLACKLIST_append_class-target = "${baselib}/cmake/grpc" |