Use of libdl is optional. Closes #248.
This commit is contained in:
parent
e29e4358e6
commit
192c96acef
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue