Don't prefix the -l option with -force_load. It doesn't work and whole archive linking of dynamic libraries doesn't make sense anyway.
Fixes .
MOS_MIGRATED_REVID=147693898
@@ -417,28 +417,14 @@ public class CppLinkActionConfigs {
" variable: 'libraries_to_link.type'",
" value: 'dynamic_library'",
" }",
- " flag_group {",
- " expand_if_false: 'libraries_to_link.is_whole_archive'",
" flag: '-l%{libraries_to_link.name}'",
" }",
" flag_group {",
- " expand_if_true: 'libraries_to_link.is_whole_archive'",
- " flag: '-Wl,-force_load,-l%{libraries_to_link.name}'",
- " }",
- " }",
- " flag_group {",
" expand_if_equal: {",
" variable: 'libraries_to_link.type'",
" value: 'versioned_dynamic_library'",
" }",
- " flag_group {",
- " expand_if_false: 'libraries_to_link.is_whole_archive'",
" flag: '-l:%{libraries_to_link.name}'",
- " }",
- " flag_group {",
- " expand_if_true: 'libraries_to_link.is_whole_archive'",
- " flag: '-Wl,-force_load,-l:%{libraries_to_link.name}'",
- " }",
" }"),
" flag_group {",
" expand_if_equal: {",
