summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2025-08-01 11:31:27 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-08-01 08:01:03 -0700
commit848561361925292ab7d12dca89c760ec3899fbe8 (patch)
tree4220a6592b0e440737a0239d1043383c0ed52f7c
parentef70ba395f6c8dc310bde2e61039f539ee71771c (diff)
downloadmeson-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.py2
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')