wscript: replace --no-undefined with -undefined error for Darwin for compatibility with older linkers (tested on 10.4)

This commit is contained in:
Alibek Omarov
2025-11-06 21:51:09 +05:00
parent 681808ca3d
commit 822aa00bd6

View File

@@ -304,6 +304,9 @@ def configure(conf):
# check if we're in a sgug environment
if 'sgug' in os.environ['LD_LIBRARYN32_PATH']:
linkflags.append('-lc')
elif conf.env.DEST_OS == 'darwin':
linkflags.remove('-Wl,--no-undefined')
linkflags.append('-Wl,-undefined,-error')
elif conf.env.SAILFISH:
conf.define('XASH_SAILFISH', 1)