Mark constructor as static
Bug: http://b/183606176
Mark the constructor init_profile_extras as static so each library gets
its own copy of the constructor. Also get rid of the
init_profile_extras_once flag which is unnecessary.
The same fix could be applied to profile-extras.cpp used for GCOV but
I'm skipping it since we don't officially support gcov and can be
cleaned up along with the rest of the build system support.
Test: verify that symbols from libjavacrypto.so (e.g. *NativeCrypto*)
are written from system_server
Change-Id: Ieedbeb609fd63963d76a067c2bc0291af7c04b1c
Merged-In: Ieedbeb609fd63963d76a067c2bc0291af7c04b1c
(cherry picked from commit 28ab69f68a07eb314017f09c7fb20cd07b4e40e9)
2 files changed