package/grpc: needs atomic or sync built-ins
authorRyan Barnett <ryan.barnett@rockwellcollins.com>
Fri, 7 Dec 2018 17:12:41 +0000 (11:12 -0600)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 31 Dec 2018 14:52:12 +0000 (15:52 +0100)
commitc16b2e2b507152750622f3e69888e3e1c6ec686a
tree93cf5b4f2993c676af1ebfb9da4534a1a496255b
parentdbd80a273767cef77474a5523a367be64612cb5d
package/grpc: needs atomic or sync built-ins

grpc uses atomic or sync built-ins from the compiler, so we need to
add the appropriate dependency. In addition, on some architectures,
linking with libatomic is needed to use the atomic builtins.

Fixes:

  http://autobuild.buildroot.org/results/2f208fbfe4e9da94be5b9c030dbd278cb8ba053c/

Signed-off-by: Ryan Barnett <ryan.barnett@rockwellcollins.com>
Reviewed-by: Robert Rose <robertroyrose@gmail.com>
[Thomas:
 - add the dependency on sync or atomic builtins in Config.in
 - use -DCMAKE_EXE_LINKER_FLAGS instead of
   -DCMAKE_C_STANDARD_LIBRARIES, to be consistent with what we do in
   some other cmake-based packages
 - tweak commit log]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/grpc/Config.in
package/grpc/grpc.mk