From 3a48e0549d3f58a56dd519d4af5c0e9ee5ece974 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Wed, 18 Nov 2009 17:07:13 +0000 Subject: linux: pass --gc-sections in link line We have compile flags set up to support using --gc-sections, but apparently we aren't using it for the actual link! It was probably lost during the gyp conversion. This has a few-megabyte difference on binary size. (Trying submit again, hopefully thestig successfully converted bots...) Review URL: http://codereview.chromium.org/399048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32330 0039d316-1c4b-4281-b951-d872f2087c98 --- build/common.gypi | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build') diff --git a/build/common.gypi b/build/common.gypi index 2f6789d..01136dc 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -618,6 +618,9 @@ '-fdata-sections', '-ffunction-sections', ], + 'ldflags': [ + '-Wl,--gc-sections', + ], }, }, 'variants': { -- cgit v1.1