From 191ea0294632fc6abf1fd12cf6574ceb084e738a Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Thu, 12 Oct 2017 02:19:46 +0100 Subject: [PATCH] intercept: Remove much in the way of symbol visibility issues Signed-off-by: Ikey Doherty --- src/intercept/meson.build | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/intercept/meson.build b/src/intercept/meson.build index aef983c..db1a797 100644 --- a/src/intercept/meson.build +++ b/src/intercept/meson.build @@ -6,10 +6,26 @@ if with_libintercept == true 'main.c', ] + nica_build = static_library( + 'nica', + sources: nica_sources, + include_directories: nica_includes, + ) + + link_nica = declare_dependency( + link_with: nica_build, + include_directories: nica_includes, + ) + + main_intercept = shared_library( 'lsi-intercept', - sources: intercept_sources + nica_sources, + sources: intercept_sources, + c_args: ['-fvisibility=hidden'], include_directories: nica_includes, + dependencies: [ + link_nica, + ], install: true, ) endif