summaryrefslogtreecommitdiff
path: root/site_scons/libdeps.py
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-01-17 17:01:15 -0800
committerAndy Schwerin <schwerin@10gen.com>2012-01-17 17:01:15 -0800
commitf6fc6431bf0a49cef4d0bb019fa61f7e137852bc (patch)
tree5ecfee2706a184d79fa5bf4c571e49047c25d0d8 /site_scons/libdeps.py
parent30668e1c79cf6e8dac45a61b64694c045e1a59f5 (diff)
downloadmongo-f6fc6431bf0a49cef4d0bb019fa61f7e137852bc.tar.gz
Fix build break for old versions of SCons.
Newer versions of SCons are more consistent about making lists out of TARGET and SOURCE fields than older (1.2.0 and older) versions. This patch bandaids that problem, which was exposed by the libdeps module.
Diffstat (limited to 'site_scons/libdeps.py')
-rw-r--r--site_scons/libdeps.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/site_scons/libdeps.py b/site_scons/libdeps.py
index 24b857c16e8..f27f56341aa 100644
--- a/site_scons/libdeps.py
+++ b/site_scons/libdeps.py
@@ -129,6 +129,7 @@ def get_libdeps(source, target, env, for_signature):
if for_signature:
return []
+ target = env.Flatten([target])
return list(__get_libdeps(target[0], 'LIBDEPS'))
def get_syslibdeps(source, target, env, for_signature):