Commit 526b2e8c authored by Marco Trevisan's avatar Marco Trevisan Committed by Bastien Nocera
Browse files

build: Ensure that gcov symbols are exposed when needed

When coverage is enabled, we need to expose the __gcov_* symbols in the
binaries and libraries or we won't get any coverage report for them.
parent 73625233
{
global:
pam_*;
__gcov_*;
local:
*;
};
......@@ -53,6 +53,8 @@ fprintd_deps = declare_dependency(
],
)
symbol_visibility = get_option('b_coverage') ? 'default' : 'hidden'
libfprintd_private = static_library('fprintd-private',
sources: [
'device.c',
......@@ -62,7 +64,7 @@ libfprintd_private = static_library('fprintd-private',
fprintd_marshal,
],
dependencies: fprintd_deps,
gnu_symbol_visibility: 'hidden',
gnu_symbol_visibility: symbol_visibility,
)
fprintd = executable('fprintd',
......@@ -75,7 +77,7 @@ fprintd = executable('fprintd',
],
dependencies: fprintd_deps,
link_with: libfprintd_private,
gnu_symbol_visibility: 'hidden',
gnu_symbol_visibility: symbol_visibility,
install: true,
install_dir: fprintd_installdir,
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment