From 5b6a3422e21dcea7f100823bb03e583fced80424 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Fri, 6 Aug 2010 22:55:22 +0000 Subject: [PATCH] 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: http://src.chromium.org/svn/trunk/src/build@55302 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- common.gypi | 1 + 1 file changed, 1 insertion(+) diff --git a/common.gypi b/common.gypi index 13dea600d..540774219 100644 --- a/common.gypi +++ b/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', {