summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 22:55:22 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 22:55:22 +0000
commit27c2e49c1fb5ea3869fce54c4ff49a674f842173 (patch)
tree3d0d5ae2139db2bcd96ea83b99446638c9d2b50d /build
parent17e2392a9b0fedd885eff864952b6e576685c06a (diff)
downloadchromium_src-27c2e49c1fb5ea3869fce54c4ff49a674f842173.zip
chromium_src-27c2e49c1fb5ea3869fce54c4ff49a674f842173.tar.gz
chromium_src-27c2e49c1fb5ea3869fce54c4ff49a674f842173.tar.bz2
linux: pass --as-needed to linker
Gentoo has some nice docs on it here: http://www.gentoo.org/proj/en/qa/asneeded.xml on my Maverick box I couldn't see a difference in the ldd output, but I suppose it can't hurt on older systems. BUG=11595 Review URL: http://codereview.chromium.org/3050043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 13dea60..5407742 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -951,6 +951,7 @@
# Specifically tell the linker to perform optimizations.
# See http://lwn.net/Articles/192624/ .
'-Wl,-O1',
+ '-Wl,--as-needed',
],
'conditions' : [
['no_gc_sections==0', {