Skip to content

Commit bba6491

Browse files
tagunildanieldegrasse
authored andcommitted
libc: arcmwdt: require static initializers
The ARC MWDT C library puts some constructors into .ctors section to initialize its internal stdio locks. Enable the initializers to make sure these constructors are actually executed. Signed-off-by: Ilya Tagunov <Ilya.Tagunov@synopsys.com>
1 parent 6a0d019 commit bba6491

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/libc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ config ARCMWDT_LIBC
127127
bool "ARC MWDT C library"
128128
depends on !NATIVE_APPLICATION
129129
depends on "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "arcmwdt"
130+
select STATIC_INIT_GNU
130131
help
131132
C library provided by ARC MWDT toolchain.
132133

0 commit comments

Comments
 (0)