Allow support for running on filesystems that use 64-bit inodes on Linux. (#502)
Most supported games don't even support this case, but at least CS:GO does. WIthout this fix, some filesystem calls can fail, or in the case of readdir, fail to return all/any files. This was first observed when using an XFS-formatted volume on CentOS 7 x64.
This commit is contained in:
parent
ed46ca3328
commit
29a5daab98
@ -291,7 +291,7 @@ class SMConfig(object):
|
||||
cxx.cflags += ['/Oy-']
|
||||
|
||||
def configure_linux(self, cxx):
|
||||
cxx.defines += ['_LINUX', 'POSIX']
|
||||
cxx.defines += ['_LINUX', 'POSIX', '_FILE_OFFSET_BITS=64']
|
||||
cxx.linkflags += ['-Wl,--exclude-libs,ALL', '-lm']
|
||||
if cxx.vendor == 'gcc':
|
||||
cxx.linkflags += ['-static-libgcc']
|
||||
|
Loading…
Reference in New Issue
Block a user