Skip to content
Commit 6f5906b6 authored by Stephanos Ioannidis's avatar Stephanos Ioannidis
Browse files

cmake: linker: lld: Do not link libc when minimal libc is used



When LLVM linker is used, the toolchain-provided C standard library is
always linked, even when the Zephyr minimal libc is selected, because `c`
is unconditionally specified in `link_order_library`, which causes `-lc` to
be specified in the linker flags.

This commit adds a check to ensure that `-lc` is not specified when the
Zephyr minimal libc is selected because it is a standalone C standard
library and it does not make sense to link two C standard libraries at
once.

Signed-off-by: default avatarStephanos Ioannidis <root@stephanos.io>
parent d8a696c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment