scons: Fix blowing up with OS_ENV=true
If PKG_CONFIG_PATH was unset it was effectively trying to set this os.environ variable to None which os.environ doesn't allow.
This commit is contained in:
parent
03ab839f30
commit
a52cc353df
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ def CheckPango(context, backend, require_version = None):
|
|||
env["PKGCONFIG_FLAGS"] = "--define-variable=prefix=" + gtkdir
|
||||
|
||||
try:
|
||||
env["ENV"]["PKG_CONFIG_PATH"] = environ.get("PKG_CONFIG_PATH")
|
||||
env["ENV"]["PKG_CONFIG_PATH"] = environ.get("PKG_CONFIG_PATH", "")
|
||||
version_arg = ""
|
||||
if require_version:
|
||||
version_arg = env["ESCAPE"](" >= ") + require_version
|
||||
|
|
|
@ -5,7 +5,7 @@ import os
|
|||
def run_pkg_config(context, name):
|
||||
env = context.env
|
||||
try:
|
||||
env["ENV"]["PKG_CONFIG_PATH"] = os.environ.get("PKG_CONFIG_PATH")
|
||||
env["ENV"]["PKG_CONFIG_PATH"] = os.environ.get("PKG_CONFIG_PATH", "")
|
||||
env.ParseConfig("pkg-config --libs --cflags --silence-errors $PKGCONFIG_FLAGS \"" + name + "\"")
|
||||
context.Log("Found '" + name + "' with pkg-config.\n")
|
||||
return True
|
||||
|
|
Loading…
Add table
Reference in a new issue