Use of libdl is optional. Closes #248.

This commit is contained in:
Jussi Pakkanen 2015-08-27 20:31:31 +03:00
parent e29e4358e6
commit 192c96acef
1 changed files with 7 additions and 4 deletions

View File

@ -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'],
link_args : ['-pthread'],
c_args : '-pthread',
dependencies : libdl,
link_with : s.get_variable('sqlib'))
test('dltest', e)