Skip to content
Snippets Groups Projects
Commit 70fa455c authored by Steven Dee's avatar Steven Dee
Browse files

Fix compilation when PKG_CONFIG_PATH is not in environ

parent 9faa4cf6
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,11 @@ tools = ['default', 'scanreplace'] ...@@ -14,7 +14,11 @@ tools = ['default', 'scanreplace']
if 'dotnet' in ARGUMENTS.get('bindings', []): if 'dotnet' in ARGUMENTS.get('bindings', []):
tools.append('csharp/mono') tools.append('csharp/mono')
env = Environment(ENV = {'PATH' : os.environ['PATH'], 'PKG_CONFIG_PATH' : os.environ['PKG_CONFIG_PATH']}, envvars = {'PATH' : os.environ['PATH']}
if 'PKG_CONFIG_PATH' in os.environ:
envvars['PKG_CONFIG_PATH'] = os.environ['PKG_CONFIG_PATH']
env = Environment(ENV = envvars,
variables = vars, variables = vars,
tools=tools, tools=tools,
toolpath=['tools']) toolpath=['tools'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment