summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-03-03 12:21:21 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-03-03 12:22:56 +0100
commite9359bcbb53db9dc346e872d9d9caff6f6720e6d (patch)
tree5a30a4742c05e6c78547c923a52554555ce1ecc7
parent49db660a62b058681ffb8a6ec581669547984b91 (diff)
zlib: Fix compilation of zlib for Android on non-Linux systems
-rw-r--r--recipes/zlib.recipe5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/zlib.recipe b/recipes/zlib.recipe
index 1286e580..437b61b1 100644
--- a/recipes/zlib.recipe
+++ b/recipes/zlib.recipe
@@ -24,6 +24,11 @@ class Recipe(recipe.Recipe):
'LIBRARY_PATH=%(prefix)s/lib ' \
'BINARY_PATH=%(prefix)s/bin ' % {'prefix':self.config.prefix}
self._remove_steps ([BuildSteps.CONFIGURE])
+ elif self.config.target_platform == Platform.ANDROID:
+ if self.config.target_arch == Architecture.X86:
+ self.configure_options += " --uname=i686-linux-android "
+ else:
+ self.configure_options += " --uname=arm-linux-androideabi "
def post_install(self):
libtool_la = LibtoolLibrary('z', 1, 2, 8, self.config.libdir,