]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Add a prefix to the lxc.pc
authorSergio Schvezov <sergio.schvezov@ubuntu.com>
Tue, 26 Jul 2016 07:41:47 +0000 (09:41 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:27:55 +0000 (18:27 -0500)
This allows installing to different locations and using
the lxc.pc to build using the generated includedir and
libdir.

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
lxc.pc.in

index 380dd25eadcf88c7b3540748adabf3fd597e1e3e..d0191549bc2f59481a8bd96699f8d7079cb5c70a 100644 (file)
--- a/lxc.pc.in
+++ b/lxc.pc.in
@@ -1,7 +1,8 @@
+prefix=@prefix@
 bindir=@BINDIR@
-libdir=@LIBDIR@
+libdir=${prefix}/@LIBDIR@
 localstatedir=@LOCALSTATEDIR@
-includedir=@INCLUDEDIR@
+includedir=${prefix}/@INCLUDEDIR@
 rootfsmountdir=@LXCROOTFSMOUNT@
 
 Name: lxc