summaryrefslogtreecommitdiff
path: root/cerbero
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2013-04-30 10:23:47 (GMT)
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-05-06 14:03:10 (GMT)
commit09d4bc51a7fb57d84fe25f108f5431eb40101492 (patch)
tree49a2f24ab32dff8523dac5a0e9a1f3aed99c8bd3 /cerbero
parentc042f468fc2350b939b7bdc99d16d6b7b49ca4f0 (diff)
downloadcerbero-09d4bc51a7fb57d84fe25f108f5431eb40101492.tar.gz
cerbero-09d4bc51a7fb57d84fe25f108f5431eb40101492.tar.xz
config: add include and lib search paths for the toolchain too
Diffstat (limited to 'cerbero')
-rw-r--r--cerbero/config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cerbero/config.py b/cerbero/config.py
index eb3ab7e..eb5f6c2 100644
--- a/cerbero/config.py
+++ b/cerbero/config.py
@@ -213,6 +213,12 @@ class Config (object):
ld_library_path = libdir
else:
ld_library_path = ""
+ if self.toolchain_prefix is not None:
+ ld_library_path = self._join_path(ld_library_path,
+ os.path.join(self.toolchain_prefix, 'lib'))
+ includedir = self._join_path(includedir,
+ os.path.join(self.toolchain_prefix, 'include'))
+
# Most of these variables are extracted from jhbuild
env = {'LD_LIBRARY_PATH': ld_library_path,