OSX/scons: make another gcc conditional futureproof

This commit is contained in:
Jens Verwiebe 2013-11-15 10:46:10 +01:00 committed by jensverwiebe
parent a00f0469ca
commit 92f3fa3fcd
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ if env['OURPLATFORM']=='darwin':
if env['WITH_BF_CYCLES_OSL'] == 1:
OSX_OSL_LIBPATH = Dir(env.subst(env['BF_OSL_LIBPATH'])).abspath
# we need 2 variants of passing the oslexec with the force_load option, string and list type atm
if env['CC'][:-2].endswith('4.8'):
if env['CC'].split('/')[len(env['CC'].split('/'))-1][4:] >= '4.8':
env.Append(LINKFLAGS=['-L'+OSX_OSL_LIBPATH,'-loslcomp','-loslexec','-loslquery'])
else:
env.Append(LINKFLAGS=['-L'+OSX_OSL_LIBPATH,'-loslcomp','-force_load '+ OSX_OSL_LIBPATH +'/liboslexec.a','-loslquery'])