summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 01:51:34 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 01:51:34 +0000
commitee7baa77b546adc51b538aaaa19106fac30ccb9f (patch)
tree845b5d1b1a7eb6ae8b0f06a5e35ff13808d56976 /build
parentc445959a53eee3eec0a4b71ca7c50c8b89b9bfdc (diff)
downloadchromium_src-ee7baa77b546adc51b538aaaa19106fac30ccb9f.zip
chromium_src-ee7baa77b546adc51b538aaaa19106fac30ccb9f.tar.gz
chromium_src-ee7baa77b546adc51b538aaaa19106fac30ccb9f.tar.bz2
linux: set a compiler flag that drops the eh_frame section
eh_frame is data used for exception frames. We already disable exceptions, but it turns out this obscure extra flag was responsible for the eh_frame making it into our binaries. This shaves off another few megabytes from our binaries. Review URL: http://codereview.chromium.org/397032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 6a703ab..2f6789d 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -500,7 +500,11 @@
'cflags': [
'<(werror)', # See note above about the werror variable.
'-pthread',
+ # We don't use exceptions. By disabling exceptions
+ # (and asynchronous-unwind-tables), we shave off 2.5mb from
+ # our resulting binary by not including the eh_frame section.
'-fno-exceptions',
+ '-fno-asynchronous-unwind-tables',
'-fvisibility=hidden',
'-Wall',
'-D_FILE_OFFSET_BITS=64',