gupascal/googletest

Support building as shared library with -fvisibility=hidden on Linux

Opened this issue · 0 comments

On non-Windows systems GTEST_API_ is defined as empty macros which assumes 
default visibility.

However if embedder's build is configured with -fvisibility=hidden GTEST_API_ 
should be defined as __attribute__ ((visibility ("default"))) otherwise 
embedder will not be able to link.

Example of such embedder is Chromium.

Original issue reported on code.google.com by vegorov@google.com on 19 Jan 2014 at 7:28