Skip to content

Commit

Permalink
capstone.pc.in: allow absolute CMAKE_INSTALL_*DIR
Browse files Browse the repository at this point in the history
This patch fixes Capstone 5 build on NixOS.

NixOS's build infrastructure sets CMAKE_INSTALL_{LIB,INCLUDE}DIR to
absolute paths. If you append it to ${prefix}, you get the wrong path.
NixOS automatically detects it and links this issue:
NixOS/nixpkgs#144170
  • Loading branch information
chayleaf committed Aug 5, 2023
1 parent a4df92e commit 1ae6149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capstone.pc.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@

Name: capstone
Description: Capstone disassembly engine
Expand Down

0 comments on commit 1ae6149

Please sign in to comment.