meson: use dependency('dl')

Added in Meson 0.62.0. It aids in finding libdl on various platforms.
This commit is contained in:
Tristan Partin
2023-07-28 14:00:57 -05:00
parent f93767cfb2
commit b10d056635
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
project('sysprof', ['c', 'cpp'],
license: 'GPL-3.0-or-later OR GPL-2.0-or-later',
version: '45.alpha',
meson_version: '>=0.59.0',
meson_version: '>=0.62.0',
default_options: [ 'c_std=gnu17',
'cpp_std=gnu++17',
'warning_level=2',

View File

@ -1,4 +1,4 @@
libdl_dep = cc.find_library('dl', required: false)
libdl_dep = dependency('dl', required: false)
preload_deps = [
dependency('glib-2.0'),