Skip to content

Commit e934bfa

Browse files
xnoxnaushir
authored andcommitted
Set correct library version, and thus correct automatic soname
From https://mesonbuild.com/Reference-manual_functions.html: If soversion is not specified, the first part of version is used instead (see below). For example, if version is 3.6.0 and soversion is not defined, it is set to 3. With this change, correct libpispi.so.1 symlink to libpispi.so.1.0.1 is produced, as expected by most distributions. Fixes: 2c8b00e ("build: Update .so versioning to x.y format") Signed-off-by: Dimitri John Ledkov <[email protected]>
1 parent 551c5b6 commit e934bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pisp_sources += version_cpp
4747
libpisp = library(
4848
meson.project_name(),
4949
pisp_sources,
50-
soversion : meson.project_version(),
50+
version : meson.project_version(),
5151
include_directories : include_directories(inc_dirs),
5252
name_prefix : '',
5353
install : true,

0 commit comments

Comments
 (0)