diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-02-26 16:47:36 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-02-26 16:47:36 +0100 |
commit | 1a9cd7e8e17ac8fdbbf70c228a8890569a35423d (patch) | |
tree | 643d4ad75e907d4ee8a0df06cfaf18fc265edf34 /recipes | |
parent | e21ddabec7dea9a8f0ed5fbc79fc9639a81ab4ef (diff) |
gst-ffmpeg: only use gas-preprocessor for ARM on iOS
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/gst-ffmpeg.recipe | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes/gst-ffmpeg.recipe b/recipes/gst-ffmpeg.recipe index b91dd99..24a84f7 100644 --- a/recipes/gst-ffmpeg.recipe +++ b/recipes/gst-ffmpeg.recipe @@ -36,7 +36,11 @@ class Recipe(recipe.Recipe): opts = '--extra-cflags=-mincoming-stack-boundary=4' if self.config.target_platform == Platform.IOS: opts = "--enable-cross-compile --target-os=darwin --cross-prefix='' --arch=%s "\ - "--cc='$CC' --as='$GAS' --ar='$AR' --nm='$NM' --extra-cflags='$CFLAGS'" % self.config.target_arch + "--cc='$CC' --ar='$AR' --nm='$NM' --extra-cflags='$CFLAGS'" % self.config.target_arch + if self.config.target_arch == Architecture.X86: + opts += ' --as=$AS' + else: + opts += ' --as=$GAS' if opts: opts_file = os.path.join(self.build_dir, 'ffmpeg_extra_configure_options') with open(opts_file, 'w+') as f: |