mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
Enable large file support on all unix platforms
This commit is contained in:
parent
31ff54ebc2
commit
20dfe3edf1
@ -503,7 +503,7 @@ elif "linux2" == os.sys.platform or "linux3" == os.sys.platform:
|
||||
elif "sunos5" == os.sys.platform:
|
||||
nix = True
|
||||
solaris = True
|
||||
env.Append( CPPDEFINES=[ "__sunos__" , "_FILE_OFFSET_BITS=64" ] )
|
||||
env.Append( CPPDEFINES=[ "__sunos__" ] )
|
||||
env.Append( LIBS=["socket","resolv"] )
|
||||
|
||||
elif os.sys.platform.startswith( "freebsd" ):
|
||||
@ -695,6 +695,7 @@ if nix:
|
||||
if not has_option('clang'):
|
||||
env.Append( CPPFLAGS=" -fno-builtin-memcmp " ) # glibc's memcmp is faster than gcc's
|
||||
|
||||
env.Append( CPPDEFINES="_FILE_OFFSET_BITS=64" )
|
||||
env.Append( CXXFLAGS=" -Wnon-virtual-dtor " )
|
||||
env.Append( LINKFLAGS=" -fPIC -pthread -rdynamic" )
|
||||
env.Append( LIBS=[] )
|
||||
|
Loading…
Reference in New Issue
Block a user