From 4f2d06204d456d0288b10b64966a104c4eebe50d Mon Sep 17 00:00:00 2001 From: Joe Rozner Date: Mon, 2 Dec 2013 11:35:00 -0800 Subject: [PATCH 1/2] Fix pkgconfig input Don't default the prefix to /usr --- libhammer.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhammer.pc.in b/libhammer.pc.in index 97ded13..ae71664 100644 --- a/libhammer.pc.in +++ b/libhammer.pc.in @@ -1,4 +1,4 @@ -prefix=/usr +prefix=${prefix} exec_prefix=${prefix} includedir=${prefix}/include libdir=${exec_prefix}/lib From 1c1d0be0bff6589bf35c964757e840cf44777057 Mon Sep 17 00:00:00 2001 From: Joe Rozner Date: Mon, 2 Dec 2013 11:56:20 -0800 Subject: [PATCH 2/2] Fix include path Remove hammer from the include path to not look in {prefix}/include/hammer for hammer/*.h. --- libhammer.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhammer.pc.in b/libhammer.pc.in index ae71664..c1e3c86 100644 --- a/libhammer.pc.in +++ b/libhammer.pc.in @@ -6,5 +6,5 @@ libdir=${exec_prefix}/lib Name: libhammer Description: The Hammer parsing library Version: 0.9.0 -Cflags: -I${includedir}/hammer +Cflags: -I${includedir} Libs: -L${libdir} -lhammer