316f4e07d29283980e2068521bf299d7ec058663
[feed/packages.git] / lang / python / python3-libselinux / patches / 020-Make-use-of-variables-when-defining-libdir-and-inclu.patch
1 Pkg-config definitions commonly make use of ${exec_prefix} and ${prefix}
2 when defining libdir and includedir, respectively. OpenWrt, for example,
3 relies on this when it adjusts things for cross compiling.
4
5 Signed-off-by: W. Michael Petullo <mike@flyn.org>
6 ---
7 src/libselinux.pc.in | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/src/libselinux.pc.in b/src/libselinux.pc.in
11 index 7c66b1fa..d9d58125 100644
12 --- a/src/libselinux.pc.in
13 +++ b/src/libselinux.pc.in
14 @@ -1,7 +1,7 @@
15 prefix=@prefix@
16 exec_prefix=${prefix}
17 -libdir=@libdir@
18 -includedir=@includedir@
19 +libdir=${exec_prefix}/lib
20 +includedir=${prefix}/include
21
22 Name: libselinux
23 Description: SELinux utility library
24 --
25 2.26.2
26