mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
wscript: replace --no-undefined with -undefined error for Darwin for compatibility with older linkers (tested on 10.4)
This commit is contained in:
3
wscript
3
wscript
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user