diff options
author | Christian Hergert <chergert@redhat.com> | 2019-08-05 19:19:08 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2019-08-05 19:19:08 -0700 |
commit | eed297fb82c3ae661b427ac5fe5ea6d299baa86a (patch) | |
tree | c05519606a62418d8783daece14b473d006b4eab /tests/testing-util | |
parent | 7ad862c039ad5861ab270ac14ee59f664d7e1c32 (diff) | |
download | libpeas-eed297fb82c3ae661b427ac5fe5ea6d299baa86a.tar.gz |
build: hide private symbols with -fvisibility=hidden
This continues with the previous commit to hide non-public symbols by
default. It is slightly complicated by the fact that we need some symbol
access from the unit tests. Normally that would mean we just add a static
library and link against that, but we need shared access to globals so
that is not an option. We could possibly switch to creating a shared
library without -fvisibility=hidden.
Diffstat (limited to 'tests/testing-util')
-rw-r--r-- | tests/testing-util/testing-util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c index 1f167a9..f35c806 100644 --- a/tests/testing-util/testing-util.c +++ b/tests/testing-util/testing-util.c @@ -19,9 +19,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif +#include "config.h" #include <stdlib.h> @@ -300,7 +298,7 @@ testing_util_run_tests (void) g_private_replace (&engine_key, NULL); g_private_replace (&unhandled_key, NULL); g_private_replace (&log_hooks_key, NULL); - peas_engine_shutdown (); + _peas_engine_shutdown (); return retval; } |