KambalinaAlyona / 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

GoogleCodeExporter commented 9 years ago
Issue 496 has been merged into this issue.

Original comment by sbe...@google.com on 5 Aug 2015 at 6:35