aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-04-17 16:09:13 -0400
committerAlon Zakai <alonzakai@gmail.com>2012-07-13 15:38:05 -0700
commit6dabaa9fa28660ef3c1d8502b5652701aa352880 (patch)
tree2d201bcc466effa150f58fdf696c605b5a55c818 /tools/shared.py
parente7f8355cff45162b81a9ab6e445c771766b878ed (diff)
Set PKG_CONFIG_LIBDIR and PKG_CONFIG_PATH
Such that: 1. Packages installed into system/ or system/local are found by configure. 2. System packages are NOT found. This can be a pain sometimes. Can be overriden by setting EM_PKG_CONFIG_PATH to additional locations.
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py
index c923f36b..a9f663ac 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -433,6 +433,8 @@ class Building:
env['HOST_CXX'] = CLANG_CPP
env['HOST_CFLAGS'] = "-W" #if set to nothing, CFLAGS is used, which we don't want
env['HOST_CXXFLAGS'] = "-W" #if set to nothing, CXXFLAGS is used, which we don't want
+ env['PKG_CONFIG_LIBDIR'] = path_from_root('system', 'local', 'lib', 'pkgconfig') + os.path.pathsep + path_from_root('system', 'lib', 'pkgconfig')
+ env['PKG_CONFIG_PATH'] = os.environ.get ('EM_PKG_CONFIG_PATH') or ''
return env
@staticmethod