linux: Work around linker OOM on 32bit target
This commit is contained in:
parent
6e3de02554
commit
794b459ccd
1 changed files with 8 additions and 0 deletions
|
@ -202,6 +202,8 @@
|
||||||
['OS=="linux"', {
|
['OS=="linux"', {
|
||||||
'cflags': [
|
'cflags': [
|
||||||
'-O2',
|
'-O2',
|
||||||
|
# Generate symbols, will be stripped later.
|
||||||
|
'-g',
|
||||||
# Don't emit the GCC version ident directives, they just end up
|
# Don't emit the GCC version ident directives, they just end up
|
||||||
# in the .comment section taking up binary size.
|
# in the .comment section taking up binary size.
|
||||||
'-fno-ident',
|
'-fno-ident',
|
||||||
|
@ -288,6 +290,12 @@
|
||||||
'STRIPFLAGS': '-x',
|
'STRIPFLAGS': '-x',
|
||||||
},
|
},
|
||||||
}], # OS=="mac" and libchromiumcontent_component==0 and _type in ["executable", "shared_library"]
|
}], # 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_conditions
|
||||||
}, # target_defaults
|
}, # target_defaults
|
||||||
'conditions': [
|
'conditions': [
|
||||||
|
|
Loading…
Reference in a new issue