linux: Work around linker OOM on 32bit target

This commit is contained in:
Cheng Zhao 2015-04-09 12:05:07 +08:00
parent 6e3de02554
commit 794b459ccd

View file

@ -202,6 +202,8 @@
['OS=="linux"', {
'cflags': [
'-O2',
# Generate symbols, will be stripped later.
'-g',
# Don't emit the GCC version ident directives, they just end up
# in the .comment section taking up binary size.
'-fno-ident',
@ -288,6 +290,12 @@
'STRIPFLAGS': '-x',
},
}], # OS=="mac" and libchromiumcontent_component==0 and _type in ["executable", "shared_library"]
['OS=="linux" and target_arch=="ia32" and _toolset=="target"', {
'ldflags': [
# Workaround for linker OOM.
'-Wl,--no-keep-memory',
],
}],
], # target_conditions
}, # target_defaults
'conditions': [