Allow linking with –whole-archive

Type: bool

Help

This options allows linking external libraries with the –whole-archive option to keep all symbols.

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At Kconfig.zephyr:172

Included via Kconfig:10

Menu path: (top menu) → Build and Link Features → Linker Options

config LINK_WHOLE_ARCHIVE
    bool
    prompt "Allow linking with --whole-archive"
    help
      This options allows linking external libraries with the
      --whole-archive option to keep all symbols.

(Definitions include propagated dependencies, including from if’s and menus.)