From 192c96acefbff35044df19ad6f764d6ff28e4bce Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 27 Aug 2015 20:31:31 +0300 Subject: [PATCH] Use of libdl is optional. Closes #248. --- manual tests/1 wrap/meson.build | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/manual tests/1 wrap/meson.build b/manual tests/1 wrap/meson.build index afdda3404..99ea26059 100644 --- a/manual tests/1 wrap/meson.build +++ b/manual tests/1 wrap/meson.build @@ -2,10 +2,13 @@ project('downloader', 'c') s = subproject('sqlite') +libdl = find_library('dl', required : false) + e = executable('dtest', 'main.c', -include_directories : s.get_variable('sqinc'), -link_args : ['-pthread', '-ldl'], -c_args : '-pthread', -link_with : s.get_variable('sqlib')) + include_directories : s.get_variable('sqinc'), + link_args : ['-pthread'], + c_args : '-pthread', + dependencies : libdl, + link_with : s.get_variable('sqlib')) test('dltest', e)