summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-17 20:08:46 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-22 08:34:57 +0200
commit168949eb504c99c3307eabb68d2776f44cf7e949 (patch)
tree27340eb41737cc0b47927e7672a9944aca2cddf0
parentf149acaf1236c3ff8ff0d5f4709be85a118c4c0c (diff)
bzip2: Fix dylib symlink on OSX
-rw-r--r--recipes/bzip2.recipe7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes/bzip2.recipe b/recipes/bzip2.recipe
index b1ad933..df5aab2 100644
--- a/recipes/bzip2.recipe
+++ b/recipes/bzip2.recipe
@@ -35,6 +35,13 @@ 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.DARWIN:
+ libdir = os.path.join(self.config.prefix, 'lib')
+ libbz2 = os.path.join(libdir, 'libbz2.dylib')
+ try:
+ os.symlink(os.path.join(libdir, 'libbz2.1.0.6.dylib'), libbz2)
+ except OSError:
+ pass
elif self.config.target_platform == Platform.IOS:
# FIXME This is to workaround a build issue, trying to ld ti libbz2.so
try: