static constructor in library not called

I use nrf connect sdk(v2.4.0)

The static constructor of global objects in the library is not called.
The static constructors of global objects that link directly with your application are called.

cpp_test.zip

test1.cpp (static link for application)
 A global constructor is called.

test2.cpp (external library)
 A global constructor is not called.

Related