I'm trying to creating a singleton for 2 different libraries in android ndk.
Imagine that I have:
- lib1 (static)
- lib2 (shared)
- lib3 (shared)
lib1
is always defined as LOCAL_STATIC_LIBRARIES of lib2
and lib3
But when I set the value of the singleton on lib2, this value remains NULL on lib3.
How can I build a singleton with this architecture?