Force all compilation units initialize cout (...etc) global objects before use.

Consider the case and assume we use libstlport_static.a:

(log.cc)
Logger log_instance(&cerr); // global object
log_instance.init_and_print_sth_before_main();

(main.cc)
int main() {...}

This is a potential bug since cerr may not been initialized before use.

Change-Id: I1ed250aecbe055ec353d51900ba70a34bbb57af5
Signed-off-by: WenHan Gu <Wenhan.gu@mediatek.com>
2 files changed