--- /usr/portage/eclass/cmake-utils.eclass.orig 2019-07-07 13:47:35.414051002 +0200 +++ /usr/portage/eclass/cmake-utils.eclass 2019-07-07 13:57:31.714645986 +0200 @@ -644,6 +644,7 @@ SET (CMAKE_INSTALL_MANDIR "${EPREFIX}/usr/share/man" CACHE PATH "") SET (CMAKE_USER_MAKE_RULES_OVERRIDE "${build_rules}" CACHE FILEPATH "Gentoo override rules") _EOF_ + [[ ${ARCH} == riscv ]] && echo 'SET (CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX '"${libdir/lib}"' CACHE STRING "library search suffix" FORCE)' >> "${common_config}" [[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}" if [[ ${EAPI} != [56] ]]; then