The package seems to use one or more global ARM-specific flags. Please replace them with appropriate CPU_FLAGS_ARM.
Obsolete after switching to meson and dropping autotools. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92238cdf743d9b5ae62a0a59dbaf289f855d187d