From 397f2f208a6dec78cd4836ed74019dd7674017aa Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 7 Nov 2024 07:41:37 +0300 Subject: [PATCH] engine: wscript: link libsocket on Solaris --- engine/wscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/wscript b/engine/wscript index a0a9bad0..c31af6ba 100644 --- a/engine/wscript +++ b/engine/wscript @@ -98,6 +98,9 @@ def configure(conf): conf.env.append_unique('CFLAGS', '-mllvm') conf.env.append_unique('CFLAGS', '-wasm-enable-sjlj') + if conf.env.DEST_OS == 'sunos': + conf.check_cc(lib='socket') + if conf.options.STATIC: conf.env.STATIC = True conf.define('XASH_NO_LIBDL',1) @@ -223,6 +226,9 @@ def build(bld): '-lSceKernelDmacMgr_stub' ] + if bld.env.DEST_OS == 'sunos': + libs.append('SOCKET') + # add client files if not bld.env.DEDICATED: source += bld.path.ant_glob([