From d7eff5864b1134a363147077eea4ca323336dd20 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 7 Mar 2024 14:06:05 -0800 Subject: [PATCH] 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. --- src/libsysprof/meson.build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/libsysprof/meson.build b/src/libsysprof/meson.build index ebe85eb9..f6889d25 100644 --- a/src/libsysprof/meson.build +++ b/src/libsysprof/meson.build @@ -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(