From a1eeb6fdfa01584cfe6e52cd9194559bbb5390d4 Mon Sep 17 00:00:00 2001 From: Fernie Date: Tue, 26 Sep 2017 19:31:42 -0600 Subject: [PATCH] fixed hardcoded paths with variables. (#1018) * fixed hardcoded paths with variables. cmake pkg-config file fixed hardcoded paths with variables. CMakeLists.txt line 394 needs to be modified > configure_file("capstone.pc.in" "capstone.pc" @ONLY) * forgot to add 64bit support variable. --- capstone.pc.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/capstone.pc.in b/capstone.pc.in index fb513d790f..7715397ea1 100644 --- a/capstone.pc.in +++ b/capstone.pc.in @@ -1,7 +1,12 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=${prefix}/lib@LIBSUFFIX@ +includedir=${prefix}/include + Name: capstone Description: Capstone disassembly engine Version: @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@ URL: http://www.capstone-engine.org -archive=@CMAKE_INSTALL_PREFIX@/lib/libcapstone.a -Libs: -L@CMAKE_INSTALL_PREFIX@/lib -lcapstone -Cflags: -I@CMAKE_INSTALL_PREFIX@/include/capstone +archive=${libdir}/libcapstone.a +Libs: -L${libdir} -lcapstone +Cflags: -I${includedir}