From 7318b8b9cfc9d2a172e75701ea95f63f7cffa0f5 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sat, 25 Jul 2020 00:24:36 +0300 Subject: cmake*.eclass: Hardcode CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX for riscv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/689410 Signed-off-by: Andreas K. Hüttel --- eclass/cmake.eclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index f1e013cd24..9f47538018 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -471,6 +471,12 @@ cmake_src_configure() { SET (CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" CACHE PATH "") SET (BUILD_SHARED_LIBS ON CACHE BOOL "") _EOF_ + + # See bug 689410 + if [[ "${ARCH}" == riscv ]]; then + echo 'SET (CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX '"${libdir#lib}"' CACHE STRING "library search suffix" FORCE)' >> "${common_config}" || die + fi + if [[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]]; then echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}" || die fi -- cgit v1.2.3-65-gdbad