Add dl library because it may be needed by SDL2

Should be fixed to be added only when needed.
This commit is contained in:
Francesco Abbate 2020-05-25 12:23:46 +02:00
parent 618078829c
commit 7b9def299d
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ project('lite', 'c', version: '1.05', default_options : ['c_std=gnu11'])
cc = meson.get_compiler('c')
libm = cc.find_library('m', required : false)
libdl = cc.find_library('dl', required : false)
lua_dep = dependency('lua')
sdl_dep = dependency('sdl2', method: 'config-tool')

View File

@ -11,6 +11,6 @@ lite_sources = [
executable('lite',
lite_sources,
include_directories: lite_include,
dependencies: [lua_dep, sdl_dep, stb_truetype_dep, libm],
dependencies: [lua_dep, sdl_dep, stb_truetype_dep, libm, libdl],
install: true,
)