summaryrefslogtreecommitdiff
path: root/recipes/bzip2.recipe
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@collabora.com>2013-01-21 11:19:29 -0300
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-02-22 22:22:39 +0100
commit5dbecff03922ef0ee326e8a8dbc5dc1b313a1459 (patch)
tree3b0706e7888299dce607c233e8230beb7a1ce153 /recipes/bzip2.recipe
parent8a153a3d8057a9c316e3b159b512f34efcbbffa8 (diff)
Add support to iOS
Diffstat (limited to 'recipes/bzip2.recipe')
-rw-r--r--recipes/bzip2.recipe9
1 files changed, 8 insertions, 1 deletions
diff --git a/recipes/bzip2.recipe b/recipes/bzip2.recipe
index fe8bf83f..b1ad933c 100644
--- a/recipes/bzip2.recipe
+++ b/recipes/bzip2.recipe
@@ -14,7 +14,7 @@ class Recipe(recipe.Recipe):
def prepare (self):
self._remove_steps([BuildSteps.CONFIGURE])
extension = ''
- if self.config.target_platform == Platform.DARWIN:
+ if self.config.target_platform in [Platform.DARWIN, Platform.IOS]:
shared_makefile = 'Makefile-libbz2_dylib'
elif self.config.target_platform == Platform.WINDOWS:
shared_makefile = 'Makefile-libbz2_dll'
@@ -35,3 +35,10 @@ class Recipe(recipe.Recipe):
if os.path.exists (libbz2):
os.remove (libbz2)
os.symlink(os.path.join(libdir, 'libbz2.so.1.0.6'), libbz2)
+ elif self.config.target_platform == Platform.IOS:
+ # FIXME This is to workaround a build issue, trying to ld ti libbz2.so
+ try:
+ os.symlink(os.path.join (self.config.prefix, 'lib', 'libbz2.dylib'),
+ os.path.join (self.config.prefix, 'lib', 'libbz2.so'))
+ except OSError:
+ pass