summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2016-10-26 16:46:34 +0200
committerEdward Hervey <bilboed@bilboed.com>2016-10-26 16:47:00 +0200
commit528c8cdb14021668291ca4417ab4fbd0709dc46d (patch)
treef4bdb238551bfbaebd76005559b0d64603571cee
parent02dc489ca85046275637fdd594b69dffe94dca59 (diff)
recipes/zlib: Only adjust uname option on linux
Causes issues on osx/ios
-rw-r--r--recipes/zlib.recipe5
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes/zlib.recipe b/recipes/zlib.recipe
index 904760e3..7ff85949 100644
--- a/recipes/zlib.recipe
+++ b/recipes/zlib.recipe
@@ -34,8 +34,9 @@ class Recipe(recipe.Recipe):
self.configure_options += " --uname=x86_64-linux-android "
else:
self.configure_options += " --uname=arm-linux-androideabi "
- elif self.config.cross_compiling() and self.config.host:
- self.configure_options += " --uname=" + self.config.host
+ elif self.config.target_platform == Platform.LINUX:
+ if self.config.cross_compiling() and self.config.host:
+ self.configure_options += " --uname=" + self.config.host
def post_install(self):
libtool_la = LibtoolLibrary('z', 1, 2, 8, self.config.libdir,