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')
|
s = subproject('sqlite')
|
||||||
|
|
||||||
|
libdl = find_library('dl', required : false)
|
||||||
|
|
||||||
e = executable('dtest', 'main.c',
|
e = executable('dtest', 'main.c',
|
||||||
include_directories : s.get_variable('sqinc'),
|
include_directories : s.get_variable('sqinc'),
|
||||||
link_args : ['-pthread', '-ldl'],
|
link_args : ['-pthread'],
|
||||||
c_args : '-pthread',
|
c_args : '-pthread',
|
||||||
link_with : s.get_variable('sqlib'))
|
dependencies : libdl,
|
||||||
|
link_with : s.get_variable('sqlib'))
|
||||||
|
|
||||||
test('dltest', e)
|
test('dltest', e)
|
||||||
|
|
Loading…
Reference in New Issue