bopamo / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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