summaryrefslogtreecommitdiffstats
path: root/recipes-security/setools/setools/setools4-fixes-for-cross-compiling.patch
blob: cdaa45cd306ea10b450d64b6e459cb9502544fba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 673bac44ce13f475845e0b69dc73bfaa5a0866aa Mon Sep 17 00:00:00 2001
From: Wenzong Fan <wenzong.fan@windriver.com>
Date: Tue, 14 Feb 2017 06:32:35 +0000
Subject: [PATCH] setools4: fixes for cross compiling

* search libsepol from $STAGING_LIBDIR
* fix manual install path as '/usr/share/man/man1'

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 5584e55..057bbb5 100644
--- a/setup.py
+++ b/setup.py
@@ -79,7 +79,7 @@ class QtHelpCommand(Command):
 
 
 # Library linkage
-lib_dirs = ['.', '/usr/lib64', '/usr/lib', '/usr/local/lib']
+lib_dirs = [os.environ["STAGING_LIBDIR"]]
 include_dirs = []
 
 with suppress(KeyError):
-- 
2.25.1