From 32391ffd73904a3e397ed942ff6cd35c179239eb Mon Sep 17 00:00:00 2001 From: Maxwell Huang-Hobbs Date: Wed, 30 Mar 2016 09:31:11 -0400 Subject: [PATCH] inherit PKG_CONFIG_PATH from environment --- SConstruct | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index bbc8c7d5872..110988ddfae 100644 --- a/SConstruct +++ b/SConstruct @@ -63,7 +63,12 @@ elif (os.name=="nt"): if (os.getenv("VSINSTALLDIR")==None or platform_arg=="android"): custom_tools=['mingw'] -env_base=Environment(tools=custom_tools,ENV = {'PATH' : os.environ['PATH']}); +env_base=Environment( + tools=custom_tools, + ENV={ + 'PATH' : os.getenv('PATH'), + 'PKG_CONFIG_PATH' : os.getenv('PKG_CONFIG_PATH') +}); #env_base=Environment(tools=custom_tools); env_base.global_defaults=global_defaults