summaryrefslogtreecommitdiffstats
path: root/build/SConscript.main
diff options
context:
space:
mode:
authordkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-10 22:32:01 +0000
committerdkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-10 22:32:01 +0000
commit7f42929a1518c190fb3015bce9964a5ae416fb41 (patch)
treee9c76faf7257b27bb35478e170e626e2155f7e75 /build/SConscript.main
parenta5a7eb258c1d2092f671e38a83b8eeb3931e4ed3 (diff)
downloadchromium_src-7f42929a1518c190fb3015bce9964a5ae416fb41.zip
chromium_src-7f42929a1518c190fb3015bce9964a5ae416fb41.tar.gz
chromium_src-7f42929a1518c190fb3015bce9964a5ae416fb41.tar.bz2
Serialize links on Linux. Should fix http://code.google.com/p/chromium/issues/detail?id=3805
Review URL: http://codereview.chromium.org/9463 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/SConscript.main')
-rw-r--r--build/SConscript.main4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/SConscript.main b/build/SConscript.main
index b9263cd..45cafa2 100644
--- a/build/SConscript.main
+++ b/build/SConscript.main
@@ -450,6 +450,10 @@ linux_env.Append(
)
linux_env.Replace(
+ # Linking of large files uses lots of RAM, so serialize links
+ # using the handy flock command from util-linux.
+ LINK = 'flock $TARGET_ROOT/linker.lock ' + linux_env['LINK'],
+
# We have several cases where archives depend on each other in a cyclic
# fashion. (V8Bindings, libport and WebCore being the most significant
# example.) Since the GNU linker does only a single pass over the archives