Skip to content

Commit

Permalink
lib: meson.build: restore libqrtr SONAME
Browse files Browse the repository at this point in the history
The previous version of `libqrtr` had `libqrtr.so.1` as their SONAME,
while the current version have only `libqrtr.so`. This is problematic as
previously built binaries using this lib will have to be rebuilt for
this new version (or rather, re-linked, which is practically
equivalent).

This change ensures the SONAME is kept by setting the project version
in the top-level `meson.build` and uses this string as the shared
library version.

In practice, the generated library filename is now `libqrtr.so.1.1` with
SONAME still being `libqrtr.so.1`.
  • Loading branch information
a-wai authored and Konrad Dybcio committed Apr 30, 2024
1 parent 8f9b2bc commit b6b586f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pkg = import('pkgconfig')
libqrtr_srcs = ['logging.c', 'qmi.c', 'qrtr.c']
libqrtr = shared_library('qrtr',
libqrtr_srcs,
version: meson.project_version(),
include_directories : inc,
install: true)

Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

project('qrtr',
'c',
version: '1.1',
license : [ 'BSD-3-Clause'],
default_options : [
'warning_level=1',
Expand Down

0 comments on commit b6b586f

Please sign in to comment.