tests: Fix static-link test when running installed

This effectively reverts commit 663ee11fda
for this `meson.build` file. This `meson.build` file isn’t actually
pulled into the main GLib (or GIO) build; it’s actually just installed
and then later called from a `meson` subprocess of `static-link.py`.

So it doesn’t have access to the `app_profile_dep` variable, which is
internal to GLib.

Fixes this CI failure: https://gitlab.gnome.org/GNOME/glib/-/jobs/5834610

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall
2025-11-25 15:08:30 +00:00
parent 1d40d3bd86
commit 8f0c9b2fe1

View File

@@ -3,9 +3,6 @@ project('test-static-link', 'c')
# This is a dummy project that static links against installed gio.
# See gio/tests/static-link.py.
app = executable('test-static-link', 'app.c',
dependencies : [
dependency('gio-2.0', static : true),
app_profile_dep,
]
dependencies : dependency('gio-2.0', static : true),
)
test('test-static-link', app)