Browse Source

engine: wscript: always add librt on linux if it was checked before

pull/2/head
Alibek Omarov 5 years ago
parent
commit
7a7bca2991
  1. 3
      engine/wscript

3
engine/wscript

@ -41,6 +41,8 @@ def configure(conf):
elif conf.options.SDL12: elif conf.options.SDL12:
conf.define('XASH_SDL', 12) conf.define('XASH_SDL', 12)
conf.check_cfg(package='sdl', args='--cflags --libs', uselib_store='SDL2' ) conf.check_cfg(package='sdl', args='--cflags --libs', uselib_store='SDL2' )
if conf.env.DEST_OS == 'linux':
conf.check_cc( lib='rt' )
conf.env.HAVE_SDL2 = True conf.env.HAVE_SDL2 = True
else: else:
conf.load('sdl2') conf.load('sdl2')
@ -105,7 +107,6 @@ def build(bld):
'client/vgui/*.c', 'client/vgui/*.c',
'client/avi/*.c']) 'client/avi/*.c'])
# HACK: public headers must be put before common, so we don't get wrong mathlib included # HACK: public headers must be put before common, so we don't get wrong mathlib included
includes = ['common', 'server', 'client', 'client/vgui', '.', '../public', '../common', '../pm_shared' ] includes = ['common', 'server', 'client', 'client/vgui', '.', '../public', '../common', '../pm_shared' ]

Loading…
Cancel
Save