diff options
author | Mike Gorse <mgorse@suse.com> | 2019-09-02 15:28:17 +0000 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2019-09-02 15:28:17 +0000 |
commit | 5b0137b503c0b2ec21bc7aea87f69f8c452e021d (patch) | |
tree | 07acd05d97b4884bc120060b4ec4b719631cb200 | |
parent | 8720a0363aaca22720d5f7b2c65591d845fe7198 (diff) | |
parent | 67b167aa7c9c6b4ecf542f4c2d584ef48cdea3f8 (diff) | |
download | at-spi2-core-5b0137b503c0b2ec21bc7aea87f69f8c452e021d.tar.gz |
Merge branch 'wip/lantw/meson-only-link-to-libdl-when-it-is-necessary' into 'master'
meson: Only link to libdl when it is necessary
See merge request GNOME/at-spi2-core!23
-rw-r--r-- | meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 0834d1f6..9939180f 100644 --- a/meson.build +++ b/meson.build @@ -52,7 +52,13 @@ libdbus_dep = dependency('dbus-1', version: libdbus_req_version) glib_dep = dependency('glib-2.0', version: glib_req_version) gobject_dep = dependency('gobject-2.0', version: gobject_req_version) gio_dep = dependency('gio-2.0', version: gio_req_version) -dl_dep = cc.find_library('dl', required: false) +if cc.has_function('dlopen') + dl_dep = [] +elif cc.has_function('dlopen', args: '-ldl') + dl_dep = cc.find_library('dl') +else + error('Could not find a library with the dlopen function') +endif x11_deps = [] x11_option = get_option('x11') |