diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-11-18 16:46:29 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-11-18 17:17:11 -0800 |
commit | f7a7a2aafe87437aefca21612dc156fde645ac89 (patch) | |
tree | 89085406b1c6cc095fea77af8758876bd2738cf2 /meta-networking/recipes-devtools | |
parent | bd4e75ac21a2c40163277c696fd6723b0d9fbe12 (diff) | |
download | meta-openembedded-f7a7a2aafe87437aefca21612dc156fde645ac89.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>
Diffstat (limited to 'meta-networking/recipes-devtools')
-rw-r--r-- | meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb b/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb index ecc575bcf..24072c083 100644 --- a/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb +++ b/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb | |||
@@ -42,6 +42,10 @@ do_configure_prepend_mipsarch() { | |||
42 | 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 | 42 | 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 |
43 | } | 43 | } |
44 | 44 | ||
45 | do_configure_prepend_toolchain-clang_x86() { | ||
46 | 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 | ||
47 | } | ||
48 | |||
45 | BBCLASSEXTEND = "native nativesdk" | 49 | BBCLASSEXTEND = "native nativesdk" |
46 | 50 | ||
47 | SYSROOT_DIRS_BLACKLIST_append_class-target = "${libdir}/cmake/grpc" | 51 | SYSROOT_DIRS_BLACKLIST_append_class-target = "${libdir}/cmake/grpc" |