~kikoodx/sle

9c663c8d92665b2ee8a86023ede2967a52ea1b67 — Lephe 2 years ago 9f4731f
meson: add explicit dependencies to -ldl and -lm

The link command might work without them when they're implicitly linked
from the glibc, but this it clearly not the case on all systems.
1 files changed, 5 insertions(+), 1 deletions(-)

M meson.build
M meson.build => meson.build +5 -1
@@ 3,6 3,10 @@ project('sle', 'c',
	license : 'GPL-3.0-or-later')
raylibdep = dependency('raylib', version: '>=3.5.0')

cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required: true)
dl_dep = cc.find_library('dl', required: true)

inc = include_directories('include')

sources = [


@@ 39,6 43,6 @@ c_flags = [
executable('sle',
	sources,
	include_directories : inc,
	dependencies : raylibdep,
	dependencies : [raylibdep, dl_dep, m_dep],
	install : true,
	c_args : c_flags)