wscript: silently ignore exception if --no-undefined is not in the linkflags list on darwin

This commit is contained in:
Alibek Omarov
2025-11-07 04:05:16 +05:00
parent 184e976c5d
commit 420a907776

View File

@@ -305,7 +305,10 @@ def configure(conf):
if 'sgug' in os.environ['LD_LIBRARYN32_PATH']:
linkflags.append('-lc')
elif conf.env.DEST_OS == 'darwin':
linkflags.remove('-Wl,--no-undefined')
try:
linkflags.remove('-Wl,--no-undefined')
except:
pass
linkflags.append('-Wl,-undefined,error')
elif conf.env.SAILFISH:
conf.define('XASH_SAILFISH', 1)