mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
wscript: silently ignore exception if --no-undefined is not in the linkflags list on darwin
This commit is contained in:
5
wscript
5
wscript
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user