wscript: link libm and libdl

This commit is contained in:
Alibek Omarov 2023-09-09 18:18:57 +03:00
parent d658b36616
commit 12e13ae9d6
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ def configure(conf):
conf.fatal('VGUI was enabled but VGUI cannot be used') conf.fatal('VGUI was enabled but VGUI cannot be used')
def build(bld): def build(bld):
libs = ['VGUI', 'SDL'] libs = ['VGUI', 'SDL', 'DL', 'M']
defines = ['CLIENT_DLL'] defines = ['CLIENT_DLL']
includes = ['.', includes = ['.',
'../dlls', '../dlls',

View File

@ -101,6 +101,7 @@ def build(bld):
features = 'c cxx', features = 'c cxx',
includes = includes, includes = includes,
defines = defines, defines = defines,
use = ['M']
install_path = install_path, install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM, subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count() idx = bld.get_taskgen_count()

View File

@ -175,8 +175,7 @@ def configure(conf):
for i in a: for i in a:
conf.check_cc(lib = i) conf.check_cc(lib = i)
else: else:
if conf.env.GOLDSOURCE_SUPPORT: conf.check_cc(lib='dl')
conf.check_cc(lib='dl')
conf.check_cc(lib='m') conf.check_cc(lib='m')
if conf.env.COMPILER_CC == 'msvc': if conf.env.COMPILER_CC == 'msvc':