scons: do not require libdl on FreeBSD since it's provided by libc

This commit is contained in:
Thomas Debesse 2017-08-30 14:08:45 +00:00
parent 38b0faf0da
commit 1e71b1fc39

View file

@ -4,12 +4,16 @@
# http://scons.org/ # http://scons.org/
import os import os
import platform
Import( [ 'utils', 'config', 'settings', 'lib_objects' ] ) Import( [ 'utils', 'config', 'settings', 'lib_objects' ] )
env = Environment( ENV = os.environ ) env = Environment( ENV = os.environ )
settings.SetupEnvironment( env, config[ 'name' ], useGtk = True, useGtkGL = True ) settings.SetupEnvironment( env, config[ 'name' ], useGtk = True, useGtkGL = True )
if ( platform.system() != 'FreeBSD' ):
env.Append( LIBS = [ 'dl' ] ) env.Append( LIBS = [ 'dl' ] )
proj = utils.vcxproj( os.path.join( GetLaunchDir(), 'radiant/radiant.vcxproj' ) ) proj = utils.vcxproj( os.path.join( GetLaunchDir(), 'radiant/radiant.vcxproj' ) )
radiant = env.Program( 'radiant.bin', lib_objects + [ os.path.join( 'radiant', i ) for i in proj.getSourceFiles() ] ) radiant = env.Program( 'radiant.bin', lib_objects + [ os.path.join( 'radiant', i ) for i in proj.getSourceFiles() ] )