OSX/scons: Try to get rid of buildproblems with openjpeg enabled in certain build environments and prepend SDK_FLAGS to CFLAGS always

This commit is contained in:
Jens Verwiebe
2014-07-06 14:10:29 +02:00
parent 5fefc84783
commit 2440b3e158
2 changed files with 3 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ defs = []
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
flags = []
defs.append('OPJ_STATIC')
elif env['OURPLATFORM'] == 'darwin':
flags = ['-Wall', '-O3', '-ffast-math', '-std=c99'] + env['CCFLAGS'] # to supply SDK_FLAGS here
else:
flags = ['-Wall', '-O3', '-ffast-math', '-std=c99']