diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 00:55:28 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 00:55:28 +0000 |
commit | cc342c46871d425c4de8eee74ad116335c7cb03a (patch) | |
tree | 2cd1fef81f37caf8d764ba9254a1b98867f015a7 | |
parent | 6480a1b95f6aa60071f7d9f12f41150689264e3f (diff) | |
download | chromium_src-cc342c46871d425c4de8eee74ad116335c7cb03a.zip chromium_src-cc342c46871d425c4de8eee74ad116335c7cb03a.tar.gz chromium_src-cc342c46871d425c4de8eee74ad116335c7cb03a.tar.bz2 |
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? This has a large difference on
binary size.
Review URL: http://codereview.chromium.org/399048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32244 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | build/common.gypi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 6a703ab..64bbd63 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -614,6 +614,9 @@ '-fdata-sections', '-ffunction-sections', ], + 'ldflags': [ + '-Wl,--gc-sections', + ], }, }, 'variants': { |