summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 17:07:13 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 17:07:13 +0000
commit3a48e0549d3f58a56dd519d4af5c0e9ee5ece974 (patch)
tree507266d4a25b557f367c7c121522f516b9323dcb /build
parentebe9f5bb71cf2c3a746b36986e9cb6dbe99e456c (diff)
downloadchromium_src-3a48e0549d3f58a56dd519d4af5c0e9ee5ece974.zip
chromium_src-3a48e0549d3f58a56dd519d4af5c0e9ee5ece974.tar.gz
chromium_src-3a48e0549d3f58a56dd519d4af5c0e9ee5ece974.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! 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
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi3
1 files changed, 3 insertions, 0 deletions
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': {