aboutsummaryrefslogtreecommitdiff
path: root/lang/python/python3-libselinux/patches/020-Make-use-of-variables-when-defining-libdir-and-inclu.patch
blob: c900ff143b84826b1ec814de65518709b6a2865b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Pkg-config definitions commonly make use of ${exec_prefix} and ${prefix}
when defining libdir and includedir, respectively. OpenWrt, for example,
relies on this when it adjusts things for cross compiling.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
---
 src/libselinux.pc.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/src/libselinux.pc.in
+++ b/src/libselinux.pc.in
@@ -1,7 +1,7 @@
 prefix=@prefix@
 exec_prefix=${prefix}
-libdir=@libdir@
-includedir=@includedir@
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
 
 Name: libselinux
 Description: SELinux utility library