Forward PKG_CONFIG_PATH since env.ParseConfig...
...does no longer runs pkg-config with access to environment.
This commit is contained in:
parent
d80fd5e290
commit
4e0c596e4d
2 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@ def CheckPango(context, backend):
|
|||
env["PKGCONFIG_FLAGS"] = "--define-variable=prefix=" + gtkdir
|
||||
|
||||
try:
|
||||
env["ENV"]["PKG_CONFIG_PATH"] = environ.get("PKG_CONFIG_PATH")
|
||||
env.ParseConfig("pkg-config --libs --cflags $PKGCONFIG_FLAGS pango" + backend)
|
||||
context.Result("yes")
|
||||
return True
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
# vi: syntax=python:et:ts=4
|
||||
|
||||
import os
|
||||
|
||||
def CheckPKG(context, name):
|
||||
env = context.env
|
||||
context.Message( 'Checking for %s... ' % name )
|
||||
try:
|
||||
env["ENV"]["PKG_CONFIG_PATH"] = os.environ.get("PKG_CONFIG_PATH")
|
||||
env.ParseConfig("pkg-config --libs --cflags $PKGCONFIG_FLAGS " + name)
|
||||
context.Result("yes")
|
||||
return True
|
||||
|
|
Loading…
Add table
Reference in a new issue