2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 09:56:22 +01:00

wscript: move setting DOS options where they should be

This commit is contained in:
Alibek Omarov 2021-11-24 23:54:03 +03:00
parent f726793711
commit 67e77ca099

View File

@ -157,6 +157,8 @@ def configure(conf):
conf.options.NO_ASYNC_RESOLVE = True
conf.define('XASH_SDLMAIN', 1)
enforce_pic = False
elif conf.env.DEST_OS == 'dos':
conf.options.SINGLE_BINARY = True
if conf.env.STATIC_LINKING:
enforce_pic = False # PIC may break full static builds
@ -246,8 +248,6 @@ def configure(conf):
conf.env.ENABLE_UTILS = conf.options.ENABLE_UTILS
conf.env.DEDICATED = conf.options.DEDICATED
conf.env.SINGLE_BINARY = conf.options.SINGLE_BINARY or conf.env.DEDICATED
if conf.env.DEST_OS == 'dos':
conf.env.SINGLE_BINARY = True
if conf.env.DEST_OS != 'win32':
conf.check_cc(lib='dl', mandatory=False)