dev-libs/protobuf: backport upstream toolchain fix

This is a manual backport of the upstream commit [1] so
we don't force an uprev just for a one-liner build fix
(cros_portage_upgrade goes from 3.11 -> 3.19 and there
seem to be many protobuf dependent packages).

When the CrOS maintainers of protobuf eventually decide
to uprev, this patch will be included from newer ebuilds.

[1] https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-libs/protobuf?id=a792e455bfcba4b7a462d1cadb1eab2ed1c3f7fc

BUG=b:213128943
TEST=Local builds on x64 & arm; CQ.

Change-Id: Ie5db791ae1741d9606fdba1aa2b5ade34de07c4f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/portage-stable/+/3366196
Reviewed-by: Allen Webb <allenwebb@google.com>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
1 file changed