mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-15 17:25:32 +00:00
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
@ -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…
x
Reference in New Issue
Block a user