[lxc-devel] [lxc/master] Add a prefix to the lxc.pc
sergiusens on Github
lxc-bot at linuxcontainers.org
Tue Jul 26 07:44:40 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 484 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160726/218a8fc3/attachment.bin>
-------------- next part --------------
From 758243d8af0406e63cc5446c65d415298fa3cef2 Mon Sep 17 00:00:00 2001
From: Sergio Schvezov <sergio.schvezov at ubuntu.com>
Date: Tue, 26 Jul 2016 09:41:47 +0200
Subject: [PATCH] Add a prefix to the lxc.pc
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 at ubuntu.com>
---
lxc.pc.in | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lxc.pc.in b/lxc.pc.in
index 380dd25..d019154 100644
--- 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
More information about the lxc-devel
mailing list