cmake: Use zephyr_link_libraries in toolchain_ld_cpp.
The toolchain_ld_cpp macro currently uses zephyr_ld_options function to link libstdc++, instead of zephyr_link_libraries which is actually intended for this purpose. This commit replaces the usage of zephyr_ld_options with zephyr_link_libraries as the former may erroneously filter out -lstdc++ and the latter ensures that this linker flag is unconditionally forwarded to the linker. For more details, refer to the issue #20406. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
51d055c520
commit
d927018282
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
macro(toolchain_ld_cpp)
|
||||
|
||||
zephyr_ld_options(
|
||||
zephyr_link_libraries(
|
||||
-lstdc++
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue