<div dir="ltr"><div dir="ltr">Reviewed-by: Robert Rose <<a href="mailto:robertroyrose@gmail.com">robertroyrose@gmail.com</a>><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 7, 2018 at 9:12 AM Ryan Barnett <<a href="mailto:ryan.barnett@rockwellcollins.com">ryan.barnett@rockwellcollins.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On some architectures, you must link with libatomic, on some other<br>
architectures, they are available built-in, but in all cases, linking<br>
against libatomic does not harm.<br>
<br>
Fixes:<br>
  <a href="http://autobuild.buildroot.org/results/2f2/2f208fbfe4e9da94be5b9c030dbd278cb8ba053c/" rel="noreferrer" target="_blank">http://autobuild.buildroot.org/results/2f2/2f208fbfe4e9da94be5b9c030dbd278cb8ba053c/</a><br>
<br>
Signed-off-by: Ryan Barnett <<a href="mailto:ryan.barnett@rockwellcollins.com" target="_blank">ryan.barnett@rockwellcollins.com</a>><br>
---<br>
 package/grpc/<a href="http://grpc.mk" rel="noreferrer" target="_blank">grpc.mk</a> | 6 ++++++<br>
 1 file changed, 6 insertions(+)<br>
<br>
diff --git a/package/grpc/<a href="http://grpc.mk" rel="noreferrer" target="_blank">grpc.mk</a> b/package/grpc/<a href="http://grpc.mk" rel="noreferrer" target="_blank">grpc.mk</a><br>
index 6ca6536fff..527c7fa7e2 100644<br>
--- a/package/grpc/<a href="http://grpc.mk" rel="noreferrer" target="_blank">grpc.mk</a><br>
+++ b/package/grpc/<a href="http://grpc.mk" rel="noreferrer" target="_blank">grpc.mk</a><br>
@@ -23,6 +23,12 @@ GRPC_CONF_OPTS = \<br>
        -DgRPC_ZLIB_PROVIDER=package \<br>
        -DgRPC_NATIVE_CPP_PLUGIN=$(HOST_DIR)/bin/grpc_cpp_plugin<br>
<br>
+# grpc can uses __atomic builtins, so we need to link with<br>
+# libatomic for the architectures who need libatomic.<br>
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)<br>
+GRPC_CONF_OPTS += -DCMAKE_C_STANDARD_LIBRARIES="-latomic"<br>
+endif<br>
+<br>
 HOST_GRPC_CONF_OPTS = \<br>
        -D_gRPC_CARES_LIBRARIES=cares \<br>
        -DgRPC_CARES_PROVIDER=none \<br>
-- <br>
2.17.1<br>
<br>
</blockquote></div>