summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/SConf.py
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2009-05-07 02:11:06 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2009-05-07 02:11:06 (GMT)
commit0f11ce655ec68ff5290212d6c1b8ad96a3eaf776 (patch)
treeecc8004ca84c8d917abac7058f30b30c3a774310 /src/engine/SCons/SConf.py
parentf380c4be82dc290726b4dfca3aa320da42ae9353 (diff)
downloadSCons-0f11ce655ec68ff5290212d6c1b8ad96a3eaf776.zip
SCons-0f11ce655ec68ff5290212d6c1b8ad96a3eaf776.tar.gz
SCons-0f11ce655ec68ff5290212d6c1b8ad96a3eaf776.tar.bz2
Fix #1673, CheckLib should prepend rather than append.
Diffstat (limited to 'src/engine/SCons/SConf.py')
-rw-r--r--src/engine/SCons/SConf.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/SCons/SConf.py b/src/engine/SCons/SConf.py
index 8586402..3749e41 100644
--- a/src/engine/SCons/SConf.py
+++ b/src/engine/SCons/SConf.py
@@ -853,6 +853,11 @@ class CheckContext:
self.env.Append(LIBS = lib_name_list)
return oldLIBS
+ def PrependLIBS(self, lib_name_list):
+ oldLIBS = self.env.get( 'LIBS', [] )
+ self.env.Prepend(LIBS = lib_name_list)
+ return oldLIBS
+
def SetLIBS(self, val):
oldLIBS = self.env.get( 'LIBS', [] )
self.env.Replace(LIBS = val)