zephyr/cmake/linker/ld
Stephanos Ioannidis d927018282 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>
2019-11-07 16:37:50 +01:00
..
target.cmake linker: move where we define _LINKER and _ASMLANGUAGE 2019-11-03 12:55:16 +01:00
target_baremetal.cmake docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
target_base.cmake cmake: Toolchain abstraction: move PROPERTY_LINKER_SCRIPT_DEFINES 2019-05-07 22:17:29 -04:00
target_configure.cmake cmake: Toolchain abstraction: Introduce toolchain_ld_configure_files 2019-05-12 12:50:57 -04:00
target_cpp.cmake cmake: Use zephyr_link_libraries in toolchain_ld_cpp. 2019-11-07 16:37:50 +01:00
target_relocation.cmake target_relocation.cmake: fix spell typo 2019-07-18 11:09:48 -04:00