From dce35f453dc33e1e9d5d7aa661ff14da793b8a6c Mon Sep 17 00:00:00 2001 From: mittorn Date: Sun, 19 Jan 2020 08:28:37 +0700 Subject: [PATCH] wscript: fix build without DLLEMU --- engine/wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/wscript b/engine/wscript index 4b19dd54..55241f06 100644 --- a/engine/wscript +++ b/engine/wscript @@ -67,9 +67,11 @@ def configure(conf): conf.load('pthreads') conf.check_pthread_flag() + if hasattr(conf.options, 'DLLEMU'): + conf.define_cond('XASH_DLL_LOADER', conf.options.DLLEMU) + conf.define_cond('XASH_STATIC_LIBS', conf.env.STATIC_LINKING) conf.define_cond('XASH_CUSTOM_SWAP', conf.options.CUSTOM_SWAP) - conf.define_cond('XASH_DLL_LOADER', conf.options.DLLEMU) conf.define_cond('SINGLE_BINARY', conf.env.SINGLE_BINARY) conf.define_cond('XASH_NO_ASYNC_NS_RESOLVE', conf.options.NO_ASYNC_RESOLVE) conf.define_cond('XASH_USE_SELECT', conf.options.USE_SELECT or conf.options.DEDICATED)