mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-27 15:30:33 +00:00
2f81f7bef8
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: https://github.com/NixOS/nixpkgs/issues/144170
14 lines
431 B
PkgConfig
14 lines
431 B
PkgConfig
prefix=@CMAKE_INSTALL_PREFIX@
|
|
exec_prefix=${prefix}
|
|
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
|
|
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
|
|
|
|
Name: capstone
|
|
Description: Capstone disassembly engine
|
|
Version: @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@
|
|
URL: https://www.capstone-engine.org/
|
|
archive=${libdir}/libcapstone.a
|
|
Libs: -L${libdir} -lcapstone
|
|
Cflags: -I${includedir}/capstone
|
|
archs=@CAPSTONE_ARCHITECTURES@
|