diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-04-24 13:36:49 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-04-24 13:38:39 +0200 |
commit | 0db73243f7d4b1d75c40c7d339e7477fd96d9b67 (patch) | |
tree | ee7eef6f9f05f07c336d21bc85e48d032b7027b2 | |
parent | 3fb81a4eeb4a077032a78cfb74571cd500adb8a7 (diff) |
x264: fix build in x86
the configure script was run using x86 instead of i686 in the
host triplet
-rw-r--r-- | recipes/x264.recipe | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes/x264.recipe b/recipes/x264.recipe index b4137c0..a9973d4 100644 --- a/recipes/x264.recipe +++ b/recipes/x264.recipe @@ -20,10 +20,13 @@ class Recipe(recipe.Recipe): 'include/x264_config.h'] def prepare(self): + arch = self.config.target_arch + if self.config.target_arch == Architecture.X86: + arch = 'i686' if self.config.target_platform == Platform.DARWIN: if self.config.target_arch == Architecture.X86: self.new_env = {'AS': 'yasm -O2 -f macho -DPREFIX'} - self.configure_options += ' --host=%s-pc-%s' % (self.config.target_arch, self.config.target_platform) + self.configure_options += ' --host=%s-pc-%s' % (arch, self.config.target_platform) if self.config.target_platform == Platform.ANDROID: if self.config.target_arch == Architecture.ARM: self.configure_options += ' --disable-asm' |