package/grpc: work around gcc bug 85180
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Mon, 28 Oct 2019 11:50:10 +0000 (12:50 +0100)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 29 Oct 2019 20:28:29 +0000 (21:28 +0100)
commit716f8b34c526c702aa19e9a66a25df5d3a6ea663
tree428a6442732f0fb273b25bcf788252837dad206c
parent83d7f5dfd1dc0cde56bd20f1d01701bace58e30e
package/grpc: work around gcc bug 85180

With Microblaze Gcc version < 8.x the build hangs due to gcc bug
85180: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. The bug
shows up when building grpc with optimization but not when building
with -O0. To work around this, if BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y we
force using -O0. Doing this let's optimize already present
CFLAGS/CXXFLAGS tweaking by introducing GRPC_CFLAGS and GRPC_CXXFLAGS
variable.

Fixes:
http://autobuild.buildroot.net/results/6f3/6f301904002cdd50dc3a66fe782b04a05b116319/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/grpc/grpc.mk