Skip to content

Bug: pkgconfig llama.pc packaged into incorrect lib directory #8640

@vt-alt

Description

@vt-alt

What happened?

Currently llama.pc is packaged into /usr/lib/pkgconfig/llama.pc which is incorrect location, and it should be packaged into architecture dependent (so called) "libdir".

Proposed patch:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 79370912..1cd49909 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -181,7 +181,7 @@ configure_file(cmake/llama.pc.in
         @ONLY)

 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/llama.pc"
-        DESTINATION lib/pkgconfig)
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

 #
 # programs, examples and tests

Name and Version

b3441

What operating system are you seeing the problem on?

ALT Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-unconfirmedmedium severityUsed to report medium severity bugs in llama.cpp (e.g. Malfunctioning Features but still useable)stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions