87e54be4e7
Static linking disregards module initializers. This breaks clocks and the API table. The patch adds an interface target during static build that wraps the archive in --whole-archive to avoid incomplete initialization. Change-Id: Id32afbf969c1f3f16a191e5b2b66847669165fb7