python3-grpcio: add bbappend
[AGL/meta-agl-demo.git] / recipes-devtools / python / python3-grpcio_agldemo.inc
1 # For some reason the atomics presence test in the grpc build
2 # passes on RISC-V even though linking with libatomic is actually
3 # needed. There are some mentions on the web of some atomics
4 # support incorrectly being in the libc stub on RISC-V, so a
5 # fix could be tracking down if that is the case and if it has
6 # been fixed in newer libc. Otherwise, the compile test in grpc
7 # will need to be changed to some other function that is known to
8 # only be in libatomic on RISC-V.
9 #
10 # The next problem is that setting GRPC_PYTHON_LDFLAGS to any value
11 # ends up not adding linking with pthread due to the way the logic
12 # is set up, so we need to actually add it explicitly. The upstream
13 # recipe seems slightly broken in this respect.
14
15 GRPC_LDFLAGS ?= " -lpthread"
16 GRPC_LDFLAGS:append:riscv64 = " -latomic"
17 export GRPC_PYTHON_LDFLAGS = "${GRPC_LDFLAGS}"