Skip to content

Commit 8485613

Browse files
tintoudcbaker
authored andcommitted
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: #14803
1 parent ef70ba3 commit 8485613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/backend/ninjabackend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1777,7 +1777,7 @@ def generate_vala_compile(self, target: build.BuildTarget) -> \
17771777
valac_outputs.append(girname)
17781778
shared_target = target.get('shared')
17791779
if isinstance(shared_target, build.SharedLibrary):
1780-
args += ['--shared-library', self.get_target_filename_for_linking(shared_target)]
1780+
args += ['--shared-library', shared_target.get_filename()]
17811781
# Install GIR to default location if requested by user
17821782
if len(target.install_dir) > 3 and target.install_dir[3] is True:
17831783
target.install_dir[3] = os.path.join(self.environment.get_datadir(), 'gir-1.0')

0 commit comments

Comments
 (0)