Avoid linking against tomlplusplus shared libs

This commit is contained in:
Robbert van der Helm
2023-02-20 16:17:49 +01:00
parent 3ef515fdc8
commit bf4ab15788
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -13,6 +13,10 @@ Versioning](https://semver.org/spec/v2.0.0.html).
- Configuring the Meson build now works correctly on Wine 8.0 final. Meson's
version comparison function considers `8.0` to be a lower version than
`8.0rc2`.
- The tomlplusplus dependency in the Meson build new avoids linking against
tomlplusplus' shared libraries. These were recently introduced, and depending
on the environment Meson may try to link them to the binaries even though the
library is used in headers only mode.
### Packaging notes
+2 -1
View File
@@ -265,7 +265,8 @@ dbus_dep = dependency('dbus-1').partial_dependency(compile_args : true, includes
function2_dep = dependency('function2', version : '>=4.0.0')
ghc_filesystem_dep = dependency('ghc_filesystem', modules : 'ghcFilesystem::ghc_filesystem', version : '>=1.5.0')
threads_dep = dependency('threads')
tomlplusplus_dep = dependency('tomlplusplus', version : '>=2.0.0')
# Tomlplusplus recently added a shraed library version. We don't want to link to that.
tomlplusplus_dep = dependency('tomlplusplus', version : '>=3.0.0').partial_dependency(compile_args : true, includes : true)
dl_dep = declare_dependency(link_args : '-ldl')
rt_dep = declare_dependency(link_args : '-lrt')