diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2011-09-28 15:56:50 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2011-09-28 15:56:50 +0400 |
commit | d0e7be242bae4abebbda1e7e183b4a5c4f9f9e1d (patch) | |
tree | 046dbb991c7ff8481cfe3d784470926e537d5b14 /source | |
parent | c8b0d25794be3dc98375fb4042746bd31a4ba961 (diff) |
OSX: solve weaklinking for non-apple compilers by using Xlinker, build also QTKit with apple gcc, to be more compatible to distributed gnu-gcc compilers without objC, objC++ capabilities
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/quicktime/SConscript | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/quicktime/SConscript b/source/blender/quicktime/SConscript index 24dfab13fd9..d2a42ddf7b3 100644 --- a/source/blender/quicktime/SConscript +++ b/source/blender/quicktime/SConscript @@ -35,5 +35,7 @@ defs=['WITH_QUICKTIME'] if env['WITH_GHOST_COCOA']: defs.append('GHOST_COCOA') - -env.BlenderLib ('bf_quicktime', sources=source_files, includes=incs, defines=defs, libtype=types, priority=priorities) +if env['WITH_GHOST_COCOA'] and env['CC'].endswith('4.6.1'): + env.BlenderLib ('bf_quicktime', sources=source_files, includes=incs, defines=defs, libtype=types, priority=priorities, cc_compilerchange='/usr/bin/gcc-4.2', cxx_compilerchange='/usr/bin/gcc-4.2') +else: + env.BlenderLib ('bf_quicktime', sources=source_files, includes=incs, defines=defs, libtype=types, priority=priorities) |