From: Patrice Levesque Date: Tue, 2 Jun 2026 07:22:16 +0000 (-0400) Subject: cmake : do not assume /usr/lib library installation. (#3693) X-Git-Tag: upstream/1.9.2~278 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=ef24de1e5814c4fb14cc396aa6aed623032073ab;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cmake : do not assume /usr/lib library installation. (#3693) Current `pkgconfig` configuration file installation path and its contents assume libraries are installed under `/usr/lib` and this is not always the case, for instance `/usr/lib64` is quite possible under Gentoo Linux. Thus use the `CMAKE_INSTALL_LIBDIR` variable instead of a hardcoded `lib`. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4df278c3..3932cf28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,7 +209,7 @@ configure_file(cmake/whisper.pc.in @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/whisper.pc" - DESTINATION lib/pkgconfig) + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) # # programs, examples and tests diff --git a/cmake/whisper.pc.in b/cmake/whisper.pc.in index 00ec7912..200179d5 100644 --- a/cmake/whisper.pc.in +++ b/cmake/whisper.pc.in @@ -1,6 +1,6 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=${prefix} -libdir=${exec_prefix}/lib +libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ includedir=${prefix}/include Name: whisper