wscript: link libm and libdl
This commit is contained in:
parent
d658b36616
commit
12e13ae9d6
|
@ -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',
|
||||||
|
|
|
@ -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()
|
||||||
|
|
3
wscript
3
wscript
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue