summaryrefslogtreecommitdiff
path: root/recipes/openh264.recipe
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-10-21 19:23:57 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-10-21 19:23:57 +0200
commitdda73bf0f38f2569b4666c5f27d013d6d00b601e (patch)
tree75c6a04cbd93eadd97df7e321317b3c2022b3076 /recipes/openh264.recipe
parent1142e73087f089ca2589b1cb96ad62b4e8195e09 (diff)
openh264: Fix build on the iOS simulator
Diffstat (limited to 'recipes/openh264.recipe')
-rw-r--r--recipes/openh264.recipe9
1 files changed, 8 insertions, 1 deletions
diff --git a/recipes/openh264.recipe b/recipes/openh264.recipe
index 5c96bf16..493b7df9 100644
--- a/recipes/openh264.recipe
+++ b/recipes/openh264.recipe
@@ -17,7 +17,7 @@ class Recipe(recipe.Recipe):
if self.config.target_platform == Platform.IOS:
make += ' OS=ios '
if self.config.target_arch == Architecture.X86:
- make += ' ARCH=x86'
+ make += ' ARCH=i386'
elif self.config.target_arch == Architecture.X86_64:
make += ' ARCH=x86_64'
elif self.config.target_arch in [Architecture.ARM, Architecture.ARMv7]:
@@ -54,4 +54,11 @@ class Recipe(recipe.Recipe):
# Use yasm instead of nasm, since that's what Cerbero
# ships with
{'ASM = nasm': "ASM = yasm"})
+
+ if self.config.target_platform == Platform.IOS and self.config.target_arch in [Architecture.X86, Architecture.X86_64]:
+ shell.replace(os.path.join(self.build_dir, 'build',
+ 'platform-ios.mk'),
+ # Use correct compiler flag for iOS simulator
+ {'-miphoneos-version-min': '-mios-simulator-version-min'})
+
# No configure script