Skip to content

Commit 29e82d2

Browse files
tejlmandnashif
authored andcommitted
cmake: add linker_libraries.cmake for Cadence Xtensa linker
Follow-up: #78320 Create linker_libraries.cmake for the Cadence Xtensa xt-ld linker to ensure correct linking of runtime and C libraries as well as correct link order. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 9f73988 commit 29e82d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2024 Nordic Semiconductor
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
set_linker_property(NO_CREATE PROPERTY c_library "-lc")
6+
set_linker_property(NO_CREATE PROPERTY rt_library "-lgcc")
7+
set_linker_property(NO_CREATE PROPERTY c++_library "-lstdc++")
8+
set_linker_property(PROPERTY link_order_library "c;rt")

0 commit comments

Comments
 (0)