Merge pull request #228 from tensor5/no-whole-archive
Replace --whole-archive with --start-group
This commit is contained in:
commit
2fb73a266a
1 changed files with 5 additions and 6 deletions
|
@ -36,14 +36,13 @@
|
||||||
'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 "--whole-archive" to force executable
|
# On Linux we have to use "--start-group" or we will have plenty of
|
||||||
# to include all symbols, otherwise we will have plenty of
|
|
||||||
# unresolved symbols errors.
|
# unresolved symbols errors.
|
||||||
'direct_dependent_settings': {
|
'link_settings': {
|
||||||
'ldflags': [
|
'libraries': [
|
||||||
'-Wl,--whole-archive',
|
'-Wl,--start-group',
|
||||||
'<@(libchromiumcontent_libraries)',
|
'<@(libchromiumcontent_libraries)',
|
||||||
'-Wl,--no-whole-archive',
|
'-Wl,--end-group'
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}, { # (Release build on Linux)
|
}, { # (Release build on Linux)
|
||||||
|
|
Loading…
Reference in a new issue