aboutsummaryrefslogtreecommitdiff
path: root/manual tests
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-08-27 20:31:31 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-08-27 20:31:31 +0300
commit192c96acefbff35044df19ad6f764d6ff28e4bce (patch)
treeb259fa8f92245ca86a9b3c96de177ea041885792 /manual tests
parente29e4358e6373a98f8b0679a80ae8420b3ac65fa (diff)
downloadmeson-192c96acefbff35044df19ad6f764d6ff28e4bce.zip
meson-192c96acefbff35044df19ad6f764d6ff28e4bce.tar.gz
meson-192c96acefbff35044df19ad6f764d6ff28e4bce.tar.bz2
Use of libdl is optional. Closes #248.
Diffstat (limited to 'manual tests')
-rw-r--r--manual tests/1 wrap/meson.build11
1 files changed, 7 insertions, 4 deletions
diff --git a/manual tests/1 wrap/meson.build b/manual tests/1 wrap/meson.build
index afdda34..99ea260 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)