1# Copyright (c) 2024 Nordic Semiconductor 2# 3# SPDX-License-Identifier: Apache-2.0 4 5set_linker_property(NO_CREATE TARGET linker PROPERTY c_library "-lc") 6# Default per standard, will be populated by clang/target.cmake based on clang output. 7set_linker_property(NO_CREATE TARGET linker PROPERTY rt_library "") 8set_linker_property(TARGET linker PROPERTY c++_library "-lc++;-lc++abi") 9 10if(CONFIG_CPP 11 # When new link principle is fully introduced, then the below condition can 12 # be removed, and instead the external module c++ should use: 13 # set_property(TARGET linker PROPERTY c++_library "<external_c++_lib>") 14 AND NOT CONFIG_EXTERNAL_MODULE_LIBCPP 15) 16 set_property(TARGET linker PROPERTY link_order_library "c++") 17endif() 18 19set_property(TARGET linker APPEND PROPERTY link_order_library "c;rt") 20