0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

better freebsd support in sconstruct

Signed-off-by: Siddharth Singh <singhsiddharth@gmail.com>
This commit is contained in:
Matt Dannenberg 2012-06-11 16:28:11 -04:00 committed by Siddharth Singh
parent 9f04fc7940
commit f710e51faa

View File

@ -313,7 +313,7 @@ libdeps.setup_environment( env )
if env['PYSYSPLATFORM'] == 'linux3':
env['PYSYSPLATFORM'] = 'linux2'
if env['PYSYSPLATFORM'] in ('freebsd9', ):
if 'freebsd' in env['PYSYSPLATFORM']:
env['PYSYSPLATFORM'] = 'freebsd'
if os.sys.platform == 'win32':
@ -522,6 +522,7 @@ elif "sunos5" == os.sys.platform:
elif os.sys.platform.startswith( "freebsd" ):
nix = True
freebsd = True
env.Append( LIBS=[ "kvm" ] )
env.Append( EXTRACPPPATH=[ "/usr/local/include" ] )
env.Append( EXTRALIBPATH=[ "/usr/local/lib" ] )
env.Append( CPPDEFINES=[ "__freebsd__" ] )