build: ensure symbols are exported for libsysprof-6

This fixes an issue where the symbols are not getting T as they are dropped
when pulling in the static archive.

This compiles twice, but that is fine for now until we come up with something
better in the long run.
This commit is contained in:
Christian Hergert
2024-03-07 14:06:05 -08:00
parent 837a4f7193
commit d7eff5864b

View File

@ -207,6 +207,7 @@ libsysprof_static = static_library(
libsysprof_capture_include_dirs],
dependencies: libsysprof_deps,
gnu_symbol_visibility: 'hidden',
c_args: release_flags,
)
libsysprof_static_dep = declare_dependency(
@ -218,11 +219,19 @@ libsysprof_static_dep = declare_dependency(
)
libsysprof = library('sysprof-@0@'.format(soname_major_version),
dependencies: [libsysprof_static_dep],
libsysprof_public_sources +
libsysprof_private_sources +
libsysprof_enums,
libsysprof_resources,
include_directories: [include_directories('.'),
libsysprof_capture_include_dirs],
dependencies: libsysprof_deps,
gnu_symbol_visibility: 'hidden',
version: '@0@.0.0'.format(soname_major_version),
darwin_versions: '@0@.0'.format(soname_major_version),
install: get_option('libsysprof'),
c_args: release_flags,
)
libsysprof_dep = declare_dependency(