0
0
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:
Mathias Stearn 2011-08-01 21:47:14 -04:00
parent 31ff54ebc2
commit 20dfe3edf1

View File

@ -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=[] )