summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-11-18 16:46:29 -0800
committerKhem Raj <raj.khem@gmail.com>2019-11-18 17:17:11 -0800
commitf7a7a2aafe87437aefca21612dc156fde645ac89 (patch)
tree89085406b1c6cc095fea77af8758876bd2738cf2 /meta-networking/recipes-devtools
parentbd4e75ac21a2c40163277c696fd6723b0d9fbe12 (diff)
downloadmeta-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.bb4
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
45do_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
45BBCLASSEXTEND = "native nativesdk" 49BBCLASSEXTEND = "native nativesdk"
46 50
47SYSROOT_DIRS_BLACKLIST_append_class-target = "${libdir}/cmake/grpc" 51SYSROOT_DIRS_BLACKLIST_append_class-target = "${libdir}/cmake/grpc"