https://bugs.gentoo.org/812855

diff --git a/configure b/configure
index d1aa8cd..bdac866 100755
--- a/configure
+++ b/configure
@@ -1761,6 +1761,7 @@ if test -z "$_target" ; then
       nios2) host_arch=nios2 ;;
       vax) host_arch=vax ;;
       xtensa*) host_arch=xtensa ;;
+      riscv*) host_arch=generic ;;
       *) host_arch=UNKNOWN ;;
   esac
   }
