Only link with libdl on Linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6316 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8ba671f849
commit
0dc50d283d
12
SConstruct
12
SConstruct
|
@ -138,10 +138,10 @@ if sys.platform == 'darwin':
|
|||
env['HAVE_OPENCL'] = 0
|
||||
else:
|
||||
env['CCFLAGS'] += ['-Wextra-tokens', '-Wnewline-eof']
|
||||
env['CCFLAGS'] += ['-iframework/Developer/SDKs/MacOSX10.5.sdk' +
|
||||
'/System/Library/Frameworks']
|
||||
env['CCFLAGS'] += ['-iframework/Developer/SDKs/MacOSX10.6.sdk' +
|
||||
'/System/Library/Frameworks']
|
||||
env['CCFLAGS'] += ['-iframework' +
|
||||
'/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks']
|
||||
env['CCFLAGS'] += ['-iframework' +
|
||||
'/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks']
|
||||
env['CPPDEFINES'] += [('HAVE_OPENCL', 1)]
|
||||
env['HAVE_OPENCL'] = 1
|
||||
env['FRAMEWORKSFLAGS'] = ['-weak_framework', 'OpenCL']
|
||||
|
@ -191,8 +191,8 @@ else:
|
|||
if sys.platform == 'linux2':
|
||||
env['CPPDEFINES'] += [('_FILE_OFFSET_BITS', 64), '_LARGEFILE_SOURCE']
|
||||
env['CXXFLAGS'] += ['-Wno-deprecated'] # XXX <hash_map>
|
||||
env['LINKFLAGS'] += ['-pthread', '-ldl']
|
||||
env['RPATH'] = []
|
||||
env['LINKFLAGS'] += ['-pthread', '-ldl']
|
||||
env['RPATH'] = []
|
||||
|
||||
conf = env.Configure(config_h = "#config.h", custom_tests = {
|
||||
'CheckPKG' : utils.CheckPKG,
|
||||
|
|
Loading…
Reference in New Issue