summaryrefslogtreecommitdiff
path: root/config/darwin.config
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2012-03-13 17:25:52 +0100
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-03-20 17:19:16 +0100
commitf978498a02100c1f3884fb6f5be6ee3eaafab421 (patch)
tree961c7054a9d46080c2cbaa1da3b634209112ec87 /config/darwin.config
parentfa5410e4fad1067fbb93be7ecf8fbacf9acc7e05 (diff)
Add OBJCFLAGS to select the proper arch for Objective-C code. Fixes applemedia plugin build in 32 bits.
Diffstat (limited to 'config/darwin.config')
-rw-r--r--config/darwin.config5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/darwin.config b/config/darwin.config
index 4cd7443..baabd57 100644
--- a/config/darwin.config
+++ b/config/darwin.config
@@ -35,7 +35,7 @@ elif target_arch == Architecture.PPC:
sdk_root = '/Developer/SDKs/MacOSX%s.sdk' % osx_sdk_version
sdk='-mmacosx-version-min=%s -isysroot %s' % (osx_sdk_version, sdk_root)
-for f in ['CFLAGS', 'CCASFLAGS', 'CXXFLAGS', 'LDFLAGS']:
+for f in ['CFLAGS', 'CCASFLAGS', 'CXXFLAGS', 'LDFLAGS', 'OBJCFLAGS']:
os.environ[f] = os.environ.get(f, '')
os.environ['CFLAGS'] = '-g -O2'
@@ -44,14 +44,17 @@ if target_arch == Architecture.X86_64:
os.environ['CFLAGS'] += ' -arch x86_64 -m64'
os.environ['LDFLAGS'] += ' -arch x86_64 -m64'
os.environ['CCASFLAGS'] += ' -arch x86_64 -m64'
+ os.environ['OBJCFLAGS'] += ' -arch x86_64 -m64'
elif target_arch == Architecture.X86:
os.environ['CFLAGS'] += ' -arch i386 -m32'
os.environ['LDFLAGS'] += ' -arch i386 -m32'
os.environ['CCASFLAGS'] += ' -arch i386 -m32'
+ os.environ['OBJCFLAGS'] += ' -arch i386 -m32'
if target_arch == Architecture.PPC:
os.environ['CFLAGS'] += ' -arch ppc'
os.environ['LDFLAGS'] += ' -arch ppc'
os.environ['CCASFLAGS'] += ' -arch ppc'
+ os.environ['OBJCFLAGS'] += ' -arch ppc'
os.environ['CFLAGS'] += ' -I%s -I%s' % (os.path.join(prefix, 'include'), os.path.join(sdk_root, 'usr', 'X11', 'include'))
os.environ['CXXFLAGS'] += os.environ['CFLAGS']