The latest development version of this page may be more current than this released 1.14.0 version.

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:170

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.)