mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
setools: Avoid using host libraries
This adds $STAGING_DIR to library search paths in setup.py, to avoid picking up host libraries when linking. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
12
utils/setools/patches/030-remove-host-paths.patch
Normal file
12
utils/setools/patches/030-remove-host-paths.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -79,7 +79,8 @@ class QtHelpCommand(Command):
|
||||
|
||||
|
||||
# Library linkage
|
||||
-lib_dirs = ['.', '/usr/lib64', '/usr/lib', '/usr/local/lib']
|
||||
+owrt_staging_dir = os.environ["STAGING_DIR"]
|
||||
+lib_dirs = ['.', owrt_staging_dir + '/usr/lib64', owrt_staging_dir + '/usr/lib', owrt_staging_dir + '/usr/local/lib' ]
|
||||
include_dirs = []
|
||||
|
||||
with suppress(KeyError):
|
||||
Reference in New Issue
Block a user