diff options
| author | Corentin Noël <corentin.noel@collabora.com> | 2025-08-01 11:31:27 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-08-01 08:01:03 -0700 |
| commit | 848561361925292ab7d12dca89c760ec3899fbe8 (patch) | |
| tree | 4220a6592b0e440737a0239d1043383c0ed52f7c | |
| parent | ef70ba395f6c8dc310bde2e61039f539ee71771c (diff) | |
| download | meson-848561361925292ab7d12dca89c760ec3899fbe8.tar.gz | |
vala: Only pass the soname to the --shared-library argument
This argument requires only the filename, not the path and the actual library
we want to use is the one defined with the soname.
Closes: https://github.com/mesonbuild/meson/issues/14803
| -rw-r--r-- | mesonbuild/backend/ninjabackend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index d9279ebf5..b2fb60580 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1777,7 +1777,7 @@ class NinjaBackend(backends.Backend): valac_outputs.append(girname) shared_target = target.get('shared') if isinstance(shared_target, build.SharedLibrary): - args += ['--shared-library', self.get_target_filename_for_linking(shared_target)] + args += ['--shared-library', shared_target.get_filename()] # Install GIR to default location if requested by user if len(target.install_dir) > 3 and target.install_dir[3] is True: target.install_dir[3] = os.path.join(self.environment.get_datadir(), 'gir-1.0') |
