Revert "Replace --whole-archive with --start-group"

This commit is contained in:
Cheng Zhao 2016-06-23 11:15:56 +09:00 committed by GitHub
parent 8eca432b6d
commit 7fd7699ada

View file

@ -36,13 +36,14 @@
'conditions': [ 'conditions': [
# Link with libraries of libchromiumcontent. # Link with libraries of libchromiumcontent.
['OS=="linux" and libchromiumcontent_component==0', { ['OS=="linux" and libchromiumcontent_component==0', {
# On Linux we have to use "--start-group" or we will have plenty of # On Linux we have to use "--whole-archive" to force executable
# to include all symbols, otherwise we will have plenty of
# unresolved symbols errors. # unresolved symbols errors.
'link_settings': { 'direct_dependent_settings': {
'libraries': [ 'ldflags': [
'-Wl,--start-group', '-Wl,--whole-archive',
'<@(libchromiumcontent_libraries)', '<@(libchromiumcontent_libraries)',
'-Wl,--end-group' '-Wl,--no-whole-archive',
], ],
} }
}, { # (Release build on Linux) }, { # (Release build on Linux)