diff options
-rw-r--r-- | recipes/gst-libav-1.0-static.recipe | 5 | ||||
-rw-r--r-- | recipes/gst-libav-1.0.recipe | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/recipes/gst-libav-1.0-static.recipe b/recipes/gst-libav-1.0-static.recipe index 3acfb0c5..03c932af 100644 --- a/recipes/gst-libav-1.0-static.recipe +++ b/recipes/gst-libav-1.0-static.recipe @@ -25,6 +25,7 @@ class Recipe(custom.GStreamerStatic): if self.config.target_platform != Platform.LINUX: self.configure_options += ' --disable-gtk-doc' + if self.config.target_platform == Platform.DARWIN: if self.config.target_arch == Architecture.X86_64: asflags = ' -arch x86_64 -m64' @@ -33,6 +34,10 @@ class Recipe(custom.GStreamerStatic): elif self.config.target_arch == Architecture.PPC: asflags = ' -arch ppc' self.configure_options += ' ASFLAGS="%s"' % asflags + elif self.config.target_platform == Platform.ANDROID: + if self.config.target_arch == Architecture.X86: + # libav internally aligns stacks, while Android doesn't + self.configure_options += ' --with-libav-extra-configure="--extra-cflags=\'-mincoming-stack-boundary=4\'"' super(Recipe, self).prepare() diff --git a/recipes/gst-libav-1.0.recipe b/recipes/gst-libav-1.0.recipe index da0bbcd2..a1de53cc 100644 --- a/recipes/gst-libav-1.0.recipe +++ b/recipes/gst-libav-1.0.recipe @@ -24,6 +24,7 @@ class Recipe(recipe.Recipe): if self.config.target_platform != Platform.LINUX: self.configure_options += ' --disable-gtk-doc' + if self.config.target_platform == Platform.DARWIN: if self.config.target_arch == Architecture.X86_64: asflags = ' -arch x86_64 -m64' @@ -32,6 +33,10 @@ class Recipe(recipe.Recipe): elif self.config.target_arch == Architecture.PPC: asflags = ' -arch ppc' self.configure_options += ' ASFLAGS="%s"' % asflags + elif self.config.target_platform == Platform.ANDROID: + if self.config.target_arch == Architecture.X86: + # libav internally aligns stacks, while Android doesn't + self.configure_options += ' --with-libav-extra-configure="--extra-cflags=\'-mincoming-stack-boundary=4\'"' def configure(self): super(recipe.Recipe, self).configure() |