summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2009-06-05 21:37:58 +0000
committerBen Loftis <ben@glw.com>2009-06-05 21:37:58 +0000
commit93fc3f7e13b2d4e1741eaf506bcc6b6495976313 (patch)
treef68a0127835b94b486c1b0cc8b6cbf41e39cafe0
parent4e977a2acaddf3c2ce860a78138a23a90e5c1857 (diff)
load environment variables for each instance of LibraryInfo and make sure PKG_CONFIG_PATH gets loaded from users environment
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5125 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index c276f9825a..8e1c4bda6d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -71,6 +71,7 @@ opts.AddOptions(
class LibraryInfo(Environment):
def __init__(self,*args,**kw):
Environment.__init__ (self,*args,**kw)
+ self.ENV_update(os.environ)
def Merge (self,others):
for other in others:
@@ -87,7 +88,7 @@ class LibraryInfo(Environment):
def ENV_update(self, src_ENV):
for k in src_ENV.keys():
if k in self['ENV'].keys() and k in [ 'PATH', 'LD_LIBRARY_PATH',
- 'LIB', 'INCLUDE' ]:
+ 'LIB', PKG_CONFIG_PATH', 'INCLUDE' ]:
self['ENV'][k]=SCons.Util.AppendPath(self['ENV'][k], src_ENV[k])
else:
self['ENV'][k]=src_ENV[k]